rename hid to uid

This commit is contained in:
Dima Gerasimov 2019-02-06 23:53:49 +00:00
parent de29758462
commit a017316cbd

View file

@ -8,7 +8,7 @@ BDIR = Path('/L/backups/instapaper/')
class Highlight(NamedTuple): class Highlight(NamedTuple):
dt: datetime dt: datetime
hid: str uid: str
text: str text: str
note: Optional[str] note: Optional[str]
url: str url: str
@ -46,7 +46,7 @@ def iter_highlights():
bk = bks[bid] bk = bks[bid]
dt = pytz.utc.localize(datetime.utcfromtimestamp(h['time'])) dt = pytz.utc.localize(datetime.utcfromtimestamp(h['time']))
yield Highlight( yield Highlight(
hid=str(h['highlight_id']), uid=str(h['highlight_id']),
dt=dt, dt=dt,
text=h['text'], text=h['text'],
note=h['note'], note=h['note'],