gagan3012 commited on
Commit
fdc60b7
·
verified ·
1 Parent(s): ffc84fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -174,7 +174,7 @@ class Reference(object):
174
  def bibtex(self):
175
  """BibTex string of the reference."""
176
 
177
- self.new_id = self.authors[0].split(' ')[1].lower()+self.year+self.title.split(' ')[0].lower()
178
 
179
  lines = ["@article{" + self.new_id]
180
  for k, v in [("Author", " and ".join(self.authors)),
 
174
  def bibtex(self):
175
  """BibTex string of the reference."""
176
 
177
+ self.new_id = self.authors[0].split(' ')[-1].lower()+self.year+self.title.split(' ')[0].lower()
178
 
179
  lines = ["@article{" + self.new_id]
180
  for k, v in [("Author", " and ".join(self.authors)),