fix create_ts for repos

This commit is contained in:
Tomas Kopecek 2020-08-25 14:36:11 +02:00
parent c754713818
commit 4240e269bc
4 changed files with 4 additions and 4 deletions

View file

@ -4662,7 +4662,7 @@ def _do_parseTaskParams(session, method, task_id, topdir):
oldrepo = params[2]
if oldrepo:
lines.append("Old Repo ID: %i" % oldrepo['id'])
lines.append("Old Repo Creation: %s" % koji.formatTimeLong(oldrepo['creation_ts']))
lines.append("Old Repo Creation: %s" % koji.formatTimeLong(oldrepo['create_ts']))
if len(params) > 3:
lines.append("External Repos: %s" %
', '.join([ext['external_repo_name'] for ext in params[3]]))

View file

@ -11,7 +11,7 @@
<tr><th>Tag</th><td><a href="taginfo?tagID=$repo.tag_id">$repo.tag_name</a></td></tr>
#set $state = $util.repoState($repo.state)
<tr><th>State</th><td class="repo$state">$state</td></tr>
<tr><th>Event</th><td>$repo.create_event ($util.formatTimeLong($repo.creation_ts))</td></tr>
<tr><th>Event</th><td>$repo.create_event ($util.formatTimeLong($repo.create_ts))</td></tr>
#if $repo.state != koji.REPO_STATES['DELETED']
<tr><th>URL</th><td><a href="$url">repodata</a></td></tr>
<tr><th>Repo json</th><td><a href="$repo_json">repo.json</a></td></tr>

View file

@ -115,7 +115,7 @@
<th>Repo&nbsp;created</th>
<td>
#if $repo
<a href="repoinfo?repoID=$repo.id">$util.formatTimeRSS($repo.creation_ts)</a>
<a href="repoinfo?repoID=$repo.id">$util.formatTimeRSS($repo.create_ts)</a>
#end if
</td>
</tr>

View file

@ -195,7 +195,7 @@ $printOpts($params[3])
#set $oldrepo = $params[2]
#if $oldrepo
<strong>Old Repo ID:</strong> <a href="repoinfo?repoID=$oldrepo.id">$oldrepo.id</a><br/>
<strong>Old Repo Creation:</strong> $koji.formatTimeLong($oldrepo.creation_ts)<br/>
<strong>Old Repo Creation:</strong> $koji.formatTimeLong($oldrepo.create_ts)<br/>
#end if
#if $len($params) > 4 and $params[4]
<strong>External Repos:</strong> $printValue(None, [ext['external_repo_name'] for ext in $params[3]])<br/>