Modify ↓
Opened 17 years ago
Closed 17 years ago
#6115 closed enhancement (wontfix)
$NOW dynamic variable
Reported by: | anonymous | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hello,
for some reports I use I have found useful to be able to filter according to a given timeframe (e.g. tickets submitted in last 2 hours)
On my local copy I managed it with following changes in trac/ticket/report.py
[line 22, add following line]
import time
[line 442, at the end of the function get_var_args add the following code]
if not report_args.has_key('NOW'): report_args['NOW'] = int(time.time())
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Each database already has this type of thing as part of its standard SQL language.
For example, in SQLite, you can use:
In MySQL, you can use:
Propose to close as
wontfix