diff --git a/trac/timeline/web_ui.py b/trac/timeline/web_ui.py
index 050f142..15f8c79 100644
a
|
b
|
class TimelineModule(Component):
|
90 | 90 | def process_request(self, req): |
91 | 91 | req.perm.assert_permission('TIMELINE_VIEW') |
92 | 92 | |
93 | | format = req.args.get('format') |
94 | | maxrows = as_int(req.args.get('max'), 50 if format == 'rss' else 0) |
| 93 | format = req.args.getfirst('format') |
| 94 | default_maxrows = 50 if format == 'rss' else 0 |
| 95 | maxrows = as_int(req.args.getfirst('max'), default_maxrows) |
95 | 96 | lastvisit = int(req.session.get('timeline.lastvisit', '0')) |
96 | 97 | |
97 | 98 | # indication of new events is unchanged when form is updated by user |
… |
… |
class TimelineModule(Component):
|
109 | 110 | precisedate = precision = None |
110 | 111 | if 'from' in req.args: |
111 | 112 | # Acquire from date only from non-blank input |
112 | | reqfromdate = req.args['from'].strip() |
| 113 | reqfromdate = req.args.getfirst('from').strip() |
113 | 114 | if reqfromdate: |
114 | 115 | try: |
115 | 116 | precisedate = user_time(req, parse_date, reqfromdate) |
… |
… |
class TimelineModule(Component):
|
117 | 118 | add_warning(req, e) |
118 | 119 | else: |
119 | 120 | fromdate = precisedate.astimezone(req.tz) |
120 | | precision = req.args.get('precision', '') |
| 121 | precision = req.args.getfirst('precision', '') |
121 | 122 | if precision.startswith('second'): |
122 | 123 | precision = timedelta(seconds=1) |
123 | 124 | elif precision.startswith('minute'): |
… |
… |
class TimelineModule(Component):
|
130 | 131 | fromdate.day, 23, 59, 59, 999999), |
131 | 132 | req.tz) |
132 | 133 | |
133 | | daysback = as_int(req.args.get('daysback'), |
| 134 | daysback = as_int(req.args.getfirst('daysback'), |
134 | 135 | 90 if format == 'rss' else None) |
135 | 136 | if daysback is None: |
136 | 137 | daysback = as_int(req.session.get('timeline.daysback'), None) |
… |
… |
class TimelineModule(Component):
|
140 | 141 | if self.max_daysback >= 0: |
141 | 142 | daysback = min(self.max_daysback, daysback) |
142 | 143 | |
143 | | authors = req.args.get('authors') |
| 144 | authors = req.args.getfirst('authors') |
144 | 145 | if authors is None and format != 'rss': |
145 | 146 | authors = req.session.get('timeline.authors') |
146 | 147 | authors = (authors or '').strip() |