Compare commits

..

13 Commits

Author SHA1 Message Date
magical 0dbeffe0a8 filter out bogus entries from user feels lists
Before:

    > your recorded feels, listed by date:

            [  0 ] 2021-01-31 (1 word)      (nopub)
            [  1 ] .202-10-214.txt (3 words)
            [  2 ] .202-10-131.txt (1 word)

            ( page 1 of 1; type 'u' or 'd' to scroll up and down)

    pick an entry from the list, or type 'q' to go back:

After:

    > your recorded feels, listed by date:

            [  0 ] 2021-01-31 (1 word)      (nopub)

            ( page 1 of 1; type 'u' or 'd' to scroll up and down)

    pick an entry from the list, or type 'q' to go back:
2021-02-15 06:42:37 +00:00
vilmibm 925b56bd20 do not let permissions on one ttbprc kill process 2019-08-26 22:20:44 +00:00
root a8f956110a Merge branch 'master' of https://github.com/modgethanc/ttbp 2019-07-10 13:00:50 +00:00
vilmibm 720cb9af91 Merge remote-tracking branch 'endorphant/master' 2019-07-01 17:06:30 +00:00
endorphant 4c6ab906cb Merge branch 'master' of github.com:modgethanc/ttbp 2018-10-14 16:32:09 -04:00
endorphant aeffd24af9 Merge branch 'master' of github.com:modgethanc/ttbp 2018-10-14 16:24:30 -04:00
endorphant 8967cf289d Merge branch 'master' of github.com:modgethanc/ttbp 2018-10-14 15:17:28 -04:00
endorphant 198bde8ed3 Merge branch 'master' of github.com:modgethanc/ttbp 2018-03-30 22:11:21 -04:00
endorphant c5b17a0fdc updating to 0.11.2 2018-02-28 17:40:14 -05:00
endorphant a2a8f719f3 Merge branch 'master' of https://github.com/modgethanc/ttbp 2018-02-25 16:28:40 -05:00
endorphant 0241ff1eaa Merge branch 'master' of https://github.com/modgethanc/ttbp 2018-02-25 00:17:36 -05:00
endorphant d99bb6447a Merge branch 'master' of https://github.com/modgethanc/ttbp 2018-02-19 19:17:26 -05:00
vilmibm 02b4671052 ensure python2 and bump minor version 2018-02-19 23:36:10 +00:00
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
from setuptools import setup

View File

@ -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")

View File

@ -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()