parameterize year
@@ -76,7 +76,7 @@ def build_groups(conference_group_id, default_params=None):
return sorted(groups.values(), key=lambda x: len(x.id))
-def get_bibtex(note, venue_fullname, url_forum=None, accepted=False, anonymous=True):
+def get_bibtex(note, venue_fullname, year, url_forum=None, accepted=False, anonymous=True):
def capitalize_title(title):
capitalization_regex = re.compile('[A-Z]{2,}')
@@ -104,10 +104,10 @@ def get_bibtex(note, venue_fullname, url_forum=None, accepted=False, anonymous=T
rejected_bibtex = [
'@misc{',
- first_author_last_name + '2018' + first_word + ',',
+ first_author_last_name + year + first_word + ',',
'title={' + bibtex_title + '},',
'author={' + authors + '},',
- 'year={2018},',
+ 'year={' + year + '},',
'url={https://openreview.net/forum?id=' + forum + '},',
'}'
]
@@ -118,7 +118,7 @@ def get_bibtex(note, venue_fullname, url_forum=None, accepted=False, anonymous=T
'title={' + bibtex_title + '},',
'author={' + authors + '},',
'booktitle={' + venue_fullname + '},',
- 'year={2018},',
+ 'year={' + year + '},',
'url={https://openreview.net/forum?id=' + forum + '},',
'}'
]
