gagan3012 commited on
Commit
70830fd
1 Parent(s): 1d980ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -38
app.py CHANGED
@@ -1,40 +1,3 @@
1
- #! /usr/bin/env python
2
- #
3
- # Copyright (c) 2012, Nathan Grigg
4
- # All rights reserved.
5
- #
6
- # Redistribution and use in source and binary forms, with or without
7
- # modification, are permitted provided that the following conditions are met:
8
- #
9
- # * Redistributions of source code must retain the above copyright
10
- # notice, this list of conditions and the following disclaimer.
11
- # * Redistributions in binary form must reproduce the above copyright
12
- # notice, this list of conditions and the following disclaimer in the
13
- # documentation and/or other materials provided with the distribution.
14
- # * Neither the name of this package nor the
15
- # names of its contributors may be used to endorse or promote products
16
- # derived from this software without specific prior written permission.
17
- #
18
- # This software is provided by the copyright holders and contributors "as
19
- # is" and any express or implied warranties, including, but not limited
20
- # to, the implied warranties of merchantability and fitness for a
21
- # particular purpose are disclaimed. In no event shall Nathan Grigg be
22
- # liable for any direct, indirect, incidental, special, exemplary, or
23
- # consequential damages (including, but not limited to, procurement of
24
- # substitute goods or services; loss of use, data, or profits; or business
25
- # interruption) however caused and on any theory of liability, whether in
26
- # contract, strict liability, or tort (including negligence or otherwise)
27
- # arising in any way out of the use of this software, even if advised of
28
- # the possibility of such damage.
29
- #
30
- # (also known as the New BSD License)
31
- #
32
- # Indiscriminate automated downloads from arXiv.org are not permitted.
33
- # For more information, see http://arxiv.org/help/robots
34
- #
35
- # This script usually makes only one call to arxiv.org per run.
36
- # No caching of any kind is performed.
37
-
38
  from __future__ import print_function
39
  from xml.etree import ElementTree
40
  import sys
@@ -174,7 +137,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)),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from __future__ import print_function
2
  from xml.etree import ElementTree
3
  import sys
 
137
  def bibtex(self):
138
  """BibTex string of the reference."""
139
 
140
+ self.new_id = self.authors[0].split(' ')[-1].lower()+self.year+self.title.split(' ')[0].lower().replace(":","")
141
 
142
  lines = ["@article{" + self.new_id]
143
  for k, v in [("Author", " and ".join(self.authors)),