WebMO - Computational chemistry on the WWW
Recent news

WebMO 14.0 is now available for free download!

WebMO 14.0 Pro and Enterprise have a variety of additional features and is available for purchase.

The WebMO app for iPad/iPhone is now available on the App Store.

December 12, 2019

Ordering of restored jobs Log Out | Topics | Search
Moderators | Edit Profile

WebMO Support Forum » Administering WebMO » Job Manager » Ordering of restored jobs « Previous Next »

Author Message
John Keller
Unregistered guest
Posted on Monday, May 05, 2014 - 9:19 pm:   

I saved some jobs from a (test) user as a file.zip archive, then imported the job archive on another instance of WebMO. However, the newly restored jobs seemed to be in random order. In WebMO Pro can one restore jobs in their original order? Can one edit the jobs.db manually?
JR Schmidt
Moderator
Username: Schmidt

Post Number: 395
Registered: 11-2006
Posted on Monday, May 05, 2014 - 9:54 pm:   

Changing:
my @jobnumbers = readdir(level2);
to
my @jobnumbers = sort {$a <=> $b} readdir(level2);

in import_job_shared.cgi will mostly accomplish what you want. It will then sort numerically at least on a PER USER basis. It was previously not "random" but in "directory" order, which means that the order would be odd if the job numbers differed in the number of digits.

Add Your Message Here
Post:
Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration