From 7a0b9e4d739d95a566d3244414dfc8c6232c61f0 Mon Sep 17 00:00:00 2001 From: Dafydd Harries Date: Mon, 18 Mar 2013 16:41:27 -0400 Subject: add submission fields to entry template --- export.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/export.py b/export.py index 2674668..4b63483 100644 --- a/export.py +++ b/export.py @@ -1,5 +1,6 @@ # encoding: utf8 +import datetime import re import sys import textwrap @@ -27,6 +28,9 @@ def concat(xss): return all +def today(): + return datetime.datetime.now().strftime('%Y-%m-%d') + class Template(object): def __init__(self, name, values): self.name = name @@ -174,7 +178,9 @@ def export(pkgs, descs, cps, cpf, name): ('VCS checkout command', ''), ('Computer languages', ', '.join(langs)), ('Status', ''), - ('Is GNU', 'No')]) + ('Is GNU', 'No'), + ('Submitted by', 'Debian import'), + ('Submitted date', today())]) people = [] res = [] -- cgit v1.2.3