Compare commits
13 Commits
Author | SHA1 | Date |
---|---|---|
magical | 0dbeffe0a8 | |
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
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
|
@ -373,7 +373,10 @@ def publishing(username=config.USER):
|
||||||
ttbprc = SETTINGS
|
ttbprc = SETTINGS
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc")))
|
ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc")))
|
||||||
|
except IOError:
|
||||||
|
return False
|
||||||
|
|
||||||
return ttbprc.get("publishing")
|
return ttbprc.get("publishing")
|
||||||
|
|
||||||
|
|
|
@ -854,6 +854,7 @@ def generate_feels_list(user):
|
||||||
entryDir = os.path.join("/home", user, ".ttbp", "entries")
|
entryDir = os.path.join("/home", user, ".ttbp", "entries")
|
||||||
|
|
||||||
for entry in os.listdir(entryDir):
|
for entry in os.listdir(entryDir):
|
||||||
|
if core.valid(entry):
|
||||||
filenames.append(os.path.join(entryDir, entry))
|
filenames.append(os.path.join(entryDir, entry))
|
||||||
metas = core.meta(filenames)
|
metas = core.meta(filenames)
|
||||||
metas.sort(key = lambda entry:entry[4])
|
metas.sort(key = lambda entry:entry[4])
|
||||||
|
|
Loading…
Reference in New Issue