Changeset 520
- Timestamp:
- 06/06/11 10:37:21 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r518 r520 13 13 Author: Sil Westerveld (SARA) 14 14 Applied by: Bas van der Vlies 15 16 * The time format for subject mapping was wrong (ticket_update_by_subject). 17 So all tickets matched. Converted it to use microseconds instead of 18 seconds. 19 Reported by: Walter Lioen (SARA) 20 Author: Bas van der Vlies & Dennis Stam 15 21 16 22 2.0.2 (2011-02-13) -
trunk/email2trac.py.in
r519 r520 77 77 import tempfile 78 78 79 from datetime import t zinfo, timedelta, datetime79 from datetime import timedelta, datetime 80 80 from stat import * 81 81 … … 1023 1023 summaries = [orig_subject, '%%: %s' % orig_subject] 1024 1024 1025 ## Convert days toseconds1025 ## Time resolution is in micoseconds 1026 1026 # 1027 lookback = int(time.mktime(time.gmtime())) - \ 1028 self.parameters.ticket_update_by_subject_lookback * 24 * 3600 1029 1027 search_date = datetime.now(util.datefmt.utc) - timedelta(days=self.parameters.ticket_update_by_subject_lookback) 1028 lookback = util.datefmt.to_utimestamp(search_date) 1030 1029 1031 1030 for summary in summaries:
Note: See TracChangeset
for help on using the changeset viewer.