Changeset 2770


Ignore:
Timestamp:
26 Nov 2007, 21:26:18 (17 years ago)
Author:
joachim
Message:

use divmod for level calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/getNextInfo.py

    r2758 r2770  
    4747        info['next_previous_verdict'] = verdict
    4848        if verdict in ('A','B',):
    49             info['next_level_id'] = "%s" % (int(level_id) + 100)
     49            info['next_level_id'] = "%s" % (divmod(int(level_id),100)[0]*100 + 100)
    5050        elif verdict == 'C':
    5151            info['next_level_id'] = "%s" % (int(level_id) + 10)
Note: See TracChangeset for help on using the changeset viewer.