Skip to content

Commit

Permalink
Fixed date type mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Mar 5, 2019
1 parent e486074 commit e103498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -15,6 +15,7 @@
'numpy' # work around https://github.com/numpy/numpy/issues/2434
],
install_requires=[
'numpy',
'networkx>=2.1',
'python-igraph',
'pygraphviz',
Expand Down
2 changes: 1 addition & 1 deletion src/macrogen/datings.py
Expand Up @@ -175,7 +175,7 @@ def add_to_graph(self, G: nx.MultiDiGraph):
xml=self.xmlsource, ignore=self.ignore, comments=self.comments)
if self.end is None and not self.ignore:
G.add_edge(item, min(self.date_before + timedelta(config.half_interval_correction),
datetime.date(1832, 3, 23)), kind='not_after',
date(1832, 3, 23)), kind='not_after',
source=BiblSource('faust://heuristic'), xml=self.xmlsource)
if self.end is not None:
G.add_edge(item, self.date_after, kind=self.end_attr[0], source=source, dating=self,
Expand Down

0 comments on commit e103498

Please sign in to comment.