Ignore:
Timestamp:
22 Aug 2010, 18:09:04 (14 years ago)
Author:
uli
Message:

Shorten code lookup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r5447 r5467  
    427427    except:
    428428        return None
    429     if batch_id not in site['accesscodes'].keys():
     429    batch = site['accesscodes'].get(batch_id, None)
     430    if batch is None:
    430431        return None
    431     batch = site['accesscodes'][batch_id]
     432   
    432433    try:
    433434        code = batch.getAccessCode(access_code)
Note: See TracChangeset for help on using the changeset viewer.