Commit Graph

21 Commits

Author SHA1 Message Date
Matthew Connelly 04ba3427ff code and syntactic cleanup 2015-11-27 18:15:20 +00:00
Matthew Connelly 977d24e82d correct an incorrect config variable 2015-11-14 07:45:42 +00:00
Matthew Connelly e499fe9df8 fixed the /utterly stupid/ bug where pastes would not show at all. turns out i forgot about the change in parameter handling in getpaste 2015-11-14 07:22:21 +00:00
Matthew Connelly 491b43c5fb minor layout change to make the default expiry match the configured default
also remove redundant undef in getpaste
2015-11-14 07:14:11 +00:00
Matthew Connelly dbff8b3d72 this is my true hell 2015-11-14 06:52:53 +00:00
Matthew Connelly 5bdbd4f10b how embarrassing 2015-11-14 06:48:53 +00:00
Matthew Connelly 34c26e49de rather than complicated queries that i'm probably doing wrong, let's just make expired paste purges happen every half a minute. i only put the "expunge every" thing in there to prevent performance degredation anyway 2015-11-14 06:45:29 +00:00
Matthew Connelly b357de7371 i don't have a testing thing locally so i'm flooding with commits sorry 2015-11-14 06:38:45 +00:00
Matthew Connelly c9889911bb database abstraction killed the perl star 2015-11-14 06:37:29 +00:00
Matthew Connelly 6b01131e87 i'm in sql abstraction hell 2015-11-14 06:33:48 +00:00
Matthew Connelly 1b524d7996 beep bop boop 2015-11-14 06:26:00 +00:00
Matthew Connelly 7cb1fe36bb more minor refactoring, confirmed that the fix for the deploy warning works without leaking out of its scope 2015-11-14 05:43:46 +00:00
Matthew Connelly c4764314b3 i am so confused 2015-11-14 05:36:04 +00:00
Matthew Connelly b64f83b8af maybe now 2015-11-14 05:17:51 +00:00
Matthew Connelly 69489585bf Potential fix for schema deploy issue 2015-11-14 05:16:46 +00:00
Matthew Connelly 4d7adc1cef try to fix the "possible precedence issue" 2015-11-14 05:13:33 +00:00
Matthew Connelly e73864fcea a lot of changes, hoo boy.
made the expiry check interval configurable (expire_every in config.yml)
fixed a bug where an expired paste could still be viewed for a short period after expiring in some situations
consolidated the paste fetching and parameter validation functions somewhat
fixed some bugs with expiry handling
hopefully haven't broken anything, changes are untested
2015-11-14 04:39:28 +00:00
Matthew Connelly ec4b723e68 disable line numbering in pygments 2015-04-18 18:13:10 +01:00
Matthew Connelly 65cb180296 Fixed a bug where DB pruning would delete pastes with no expiration date as well as pastes that had legitimately expired 2015-04-15 04:38:27 +01:00
Matthew Connelly aa63c16177 Fix issue in validation that would prevent users from specifying month:1:day:2 to have a paste expire 1m2days from submission 2015-04-13 04:09:42 +01:00
Matthew Connelly 7a3a80c791 First commit 2015-04-13 03:56:29 +01:00