~hanno-stock/revu/updated-revu-workflow

« back to all changes in this revision

Viewing changes to includes/Uploads.py

  • Committer: Siegfried-Angel Gevatter Pujals
  • Date: 2009-02-06 17:11:07 UTC
  • mfrom: (415.1.3 revu)
  • Revision ID: rainct@ubuntu.com-20090206171107-6u0vsmql134blo1b
Change the format of the dates, as proposed by Morten.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    else:
48
48
        return ''
49
49
 
50
 
def upload_date(upid):
51
 
    sql = """SELECT to_char(dateofupload, 'Month DD  HH24:MI') FROM Upload WHERE upid = %d
52
 
          """ % upid
53
 
    r = connection.query(sql)
54
 
    if r.ntuples() == 1:
55
 
        return r.getresult()[0][0]
56
 
 
57
50
def nuke_upload_rec(upid):
58
51
    """ removes all comments and upload information from all uploads which
59
52
    match the same source package as the upload referenced by upload id upid