forked from endorphant/ttbp
Compare commits
13 Commits
0aaedaff5a
...
ff1792b185
Author | SHA1 | Date |
---|---|---|
magical | ff1792b185 | |
vilmibm | 925b56bd20 | |
root | a8f956110a | |
vilmibm | 720cb9af91 | |
endorphant | 4c6ab906cb | |
endorphant | aeffd24af9 | |
endorphant | 8967cf289d | |
endorphant | 198bde8ed3 | |
endorphant | c5b17a0fdc | |
endorphant | a2a8f719f3 | |
endorphant | 0241ff1eaa | |
endorphant | d99bb6447a | |
vilmibm | 02b4671052 |
2
setup.py
2
setup.py
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
|
|
|
@ -373,7 +373,10 @@ def publishing(username=config.USER):
|
|||
ttbprc = SETTINGS
|
||||
|
||||
else:
|
||||
ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc")))
|
||||
try:
|
||||
ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc")))
|
||||
except IOError:
|
||||
return False
|
||||
|
||||
return ttbprc.get("publishing")
|
||||
|
||||
|
|
|
@ -854,7 +854,8 @@ def generate_feels_list(user):
|
|||
entryDir = os.path.join("/home", user, ".ttbp", "entries")
|
||||
|
||||
for entry in os.listdir(entryDir):
|
||||
filenames.append(os.path.join(entryDir, entry))
|
||||
if core.valid(entry):
|
||||
filenames.append(os.path.join(entryDir, entry))
|
||||
metas = core.meta(filenames)
|
||||
metas.sort(key = lambda entry:entry[4])
|
||||
metas.reverse()
|
||||
|
|
Loading…
Reference in New Issue