Event Timeline
Comment Actions
huh?
In [1]: from swh.storage.interface import PagedResult In [2]: from swh.model.model import OriginVisit In [4]: import datetime In [5]: p0 = PagedResult(results=[OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2015, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='git', visit=1), OriginVisit(origin='https:// ...: github.com/user1/repo1', date=datetime.datetime(2017, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='hg', visit=2), OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2017, 1 ...: , 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='hg', visit=3)], next_page_token=None) In [6]: p0 Out[6]: PagedResult(results=[OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2015, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='git', visit=1), OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2017, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='hg', visit=2), OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2017, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='hg', visit=3)], next_page_token=None) In [7]: p0 == p0 Out[7]: True In [8]: p1 = PagedResult(results=[OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2015, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='git', visit=1), OriginVisit(origin='https:// ...: github.com/user1/repo1', date=datetime.datetime(2017, 1, 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='hg', visit=2), OriginVisit(origin='https://github.com/user1/repo1', date=datetime.datetime(2017, 1 ...: , 1, 23, 0, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), type='hg', visit=3)], next_page_token=None) In [9]: p0 == p1 Out[9]: True