first attempt at exporting bugs thwarted with AttributeError
[rejon@slowtop:~/Software/lp2gh]
$ bin/lp2gh-export-bugs worldlabel > ../bugs.json
fetching Bug #812563 in worldlabel: "there isn't a clear test site setup"
Traceback (most recent call last):
File "bin/lp2gh-export-bugs", line 27, in
I added a quick fix in you util.py:
import time
GH_DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
def to_timestamp(dt): fmttime = '' try: tt = (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.weekday(), 0, 0) fmttime = dt.strftime(GH_DATE_FORMAT) except AttributeError: pass return fmttime