Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
0dbeffe0a8 | |||
|
925b56bd20 | ||
a8f956110a | |||
|
720cb9af91 | ||
4c6ab906cb | |||
aeffd24af9 | |||
8967cf289d | |||
198bde8ed3 | |||
c5b17a0fdc | |||
a2a8f719f3 | |||
0241ff1eaa | |||
d99bb6447a | |||
|
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…
x
Reference in New Issue
Block a user