Project

General

Profile

Actions

Feature #594

open

Support more than 26 sessions in a day

Added by Amber Herold over 14 years ago. Updated about 14 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

Also available in: Atom PDF