Project

General

Profile

Actions

Feature #594

open

Support more than 26 sessions in a day

Added by Amber Herold almost 14 years ago. Updated over 13 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
-
Start date:
05/28/2010
Due date:
% Done:

0%

Estimated time:

Description

So, we assign session names like this:

$prefix = strtolower(date('yMd'));

// Leginon appends a letter starting with 'a' and appion starts with 'z' as shown here to avoid conflicts.
for ($i=90; $i>=65; $i--) {
    $letter = strtolower(chr($i));
    $sessionname = $prefix.$letter;

When the letters of the alphabet are used up, there are no more names for sessions...not sure what happens in that case, did not look that far down the code.

It would be better to come up with a different way of assigning the names, such as having both apps drawing from a preset pool of names, perhaps listed in the DB.

Actions #1

Updated by Neil Voss almost 14 years ago

  • Target version set to Appion/Leginon 2.1.0
Actions #2

Updated by Neil Voss almost 14 years ago

  • Status changed from New to Assigned
  • Assignee set to Anchi Cheng
Actions #3

Updated by Amber Herold almost 14 years ago

  • Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon 2.2.0
Actions #4

Updated by Amber Herold over 13 years ago

  • Target version changed from Appion/Leginon 2.2.0 to Appion/Leginon Future Version
Actions

Also available in: Atom PDF