Commit Graph

75 Commits (9d1bb7f8bf86237322393a02cf49afa25dab5edd)

Author SHA1 Message Date
eric 3bc5adc5ce delint 2021-02-09 21:17:07 -05:00
eric 711963856b call send_all directly 2021-02-09 18:50:46 -05:00
eric 0d1a57f8fd remove goodreads
GR api set to be retired
2020-12-10 15:29:57 -05:00
eric 6e75595714 see if this lets notification work 2020-10-02 17:44:53 -04:00
eric e14c972f41 make task args jsonable 2020-03-05 14:30:20 -05:00
eric 6705583c89 added automation tasks 2020-03-04 14:37:40 -05:00
eric 7d175185f3 Revert "tweak"
This reverts commit 7b440d1de7.
2020-02-28 15:54:09 -05:00
eric 7b440d1de7 tweak
wondering why celery/redis is balky on m
2020-02-28 15:35:31 -05:00
eric c9d93efa1d upgrade celery to 4.4 2020-02-26 23:15:55 -05:00
eric 88a39daae5 new celery config 2020-02-26 17:15:22 -05:00
eric c8a76cc925 xrange 2020-02-17 14:02:10 -05:00
eric 7aa6148b42 exception syntax 2020-02-12 17:56:04 -05:00
eric e82c389236 make sure to queue the notification emmisions
so that we don't need the emit_notices cron job
2018-06-20 15:57:34 -04:00
eric 1d83e7af78 update to mailchimp 3.0 api 2018-06-20 10:03:48 -04:00
eric 39fdd9683a rip out dead code 2018-04-19 12:24:34 -04:00
eric 4aeae6e67c implement donation options 2017-12-14 16:24:26 -05:00
eric 167c7fc60a update doab loader 2016-10-12 16:07:54 -04:00
eric 3ac7769656 move doab.py into loaders 2016-10-11 15:46:03 -04:00
eric 6c4874c3b2 tighten ebook notifications
The 0006_auto_20160818_1809 migration created inactive ebooks for
campaign books. These new ebooks triggered user notifications. Now the
new ebook notification is only sent if there's a new ebook. Also, it's
been a known issue #76568402 that we should stop notifying ebooks for
users who fave newly available ebooks.
2016-10-04 13:22:01 -04:00
eric 7ad0d7f494 implemented ebook versions
It turned out that ebookfile handling needed revamping with the
addition of ebook versions; so this change turned out to be rather big.
2016-08-24 15:41:29 -04:00
eric a72ac07dcf add function to generate mobi from the active epub 2016-03-29 13:06:23 -04:00
Raymond Yee 53a37b1b31 Merge branch 'master' into mobigen_integrate 2015-04-03 10:05:02 -07:00
Raymond Yee e9d8080c3b First cut of celery tasks for converting to mobi 2015-01-23 15:52:35 -08:00
eric ea5adba871 add notifications for unredeemed gifts 2015-01-23 13:11:19 -05:00
eric ef6c4a659e ebook files activate and deactivate
when manager unselects 'add_ask', the system didn't revert to the files
without added ask. This fixes that. To test, toggle the add_ask
checkbox and save campaign.
2014-10-04 16:51:16 -04:00
eric 6bccb4b3f8 bugfix 2014-09-05 13:30:09 -04:00
eric 30e50260a3 make ebooks when new files are uploaded, clean up old
the download bits are suppressed when the ask comes from the pdf
seems we weren't making new ebooks when new files were uploaded
old ebooks now deactivated so we don't loase download counts and history
add ask to pdf is triggered by file upload or THANKS campaign save
2014-09-04 18:33:20 -04:00
eric 40831b6161 incorporate add_ask into campaign management 2014-08-30 12:04:50 -04:00
Raymond Yee 7f02fcd126 The doab_load_books django command is working again -- I had to fix the signatures of some methods 2014-07-16 15:26:19 -07:00
Raymond Yee 833f077de1 With the new arguments in doab.json, I needed to add a catch-all **kwargs to load_doab_edition
functions in regluit.core.doab and regluit.core.tasks.
2014-07-03 10:45:57 -07:00
Raymond Yee efdbdf6643 [#70942940] Making the DOAB record loading asynchronous (ie., use Celery) 2014-06-05 16:31:14 -07:00
Raymond Yee c92219f673 Revert "Reverting changes made to fix double click problem -- and moving changes to fix_double_click"
This reverts commit 643d8d358d.
2014-05-07 15:37:19 -07:00
Raymond Yee 643d8d358d Reverting changes made to fix double click problem -- and moving changes to fix_double_click
Revert "move post monkey subscribe into a task"

This reverts commit 9556c4a792.
2014-05-02 13:59:04 -07:00
eric 9556c4a792 move post monkey subscribe into a task
I'm not able to verify that this works better
2014-05-02 14:07:59 -04:00
eric c3c3d5b9c4 don't want "ending soon" notifications on B2U 2013-12-20 17:33:55 -05:00
eric 0840a1fd71 implement holds. Also fix borrow view that didn't specify work. 2013-11-08 12:13:34 -05:00
eric b801eb4927 add acq handling to download
needs migration. should migrate core back to 0052 to refresh acq table

download page no longer passes ebook ids to send_to_kindle, url
calculations are now done in view
2013-09-05 22:54:11 -04:00
eric e51fa1190e wired watermarker into file uploads. migration needed 2013-08-26 23:56:01 -04:00
eric 6da8d16770 moved the payment tasks to payment from core 2013-08-03 18:42:33 -04:00
Raymond Yee 3936692244 [#40140123] Add Account.update_status() to replace handle_Account_status_change thus resolving a number of issues Eric identified:
* [ ]https://github.com/Gluejar/regluit/pull/176/files#r4221450 "It also seems odd to be using signals to talk only within the same module. This seems to me to be a misuse of signals, and makes for code that is harder to read"  -- I need to decide whether I agree w/ Eric.
   * [ ]https://github.com/Gluejar/regluit/pull/176/files#r4366503 long exchange "making it readonly would be overkill (java-ish) but the current code is not clear. Your save signal handler has to figure out whether a state transition has occurred and then act accordingly, which seems like a lot of hoops to jump though. better to put all the transition work in one place. For example, shouldn't it be the deactivate method that sets the status to deactivated?

For example, the methods on campaign do a reasonable job of handling all the status transitions."  What I  should:  mimic structure of  4fc449dad5/core/models.py (L322)   -> time to write up how Campaign works

   * [ ]https://github.com/Gluejar/regluit/pull/176/files#r4214827 "could also mean the Account has been deleted. don't you really want instance.pk=None?"

   * [ ]https://github.com/Gluejar/regluit/pull/176/files#r4221509 "since, these actions are being done in batch mode, the emit notifications would work a lot better if they were emitted after the batch of notifications is created."
2013-07-23 14:16:42 -07:00
Raymond Yee 4fc449dad5 Issue: instead of updating all Accounts in core.tasks.update_account_status -- updating only Accounts with expiration dates this month or earlier.
Possible to make this even more narrow -- see https://www.evernote.com/shard/s1/sh/35adfc05-46cc-41b7-865e-8a0edb652fd0/a18917c04c0262cd624208b7a071ec52
2013-07-18 16:14:01 -07:00
Raymond Yee 46d1d4f767 Merge branch 'master' into expiring_cc
Conflicts:
	payment/models.py
	payment/tests.py
2013-07-08 10:52:44 -07:00
Andromeda Yelton ad69580b2d PEP 8, PEP 328. I feel better now. 2013-06-03 12:31:39 -04:00
Raymond Yee a3cc502924 get rid of AccountTest0
renamed notice to Credit Card Number Updated
actually save account in update_account_status
2013-05-20 13:58:21 -07:00
Raymond Yee aac69cf64c Fixed up account_expiring text...next step is to fix up account_expired and account_active 2013-04-17 15:43:44 -07:00
Raymond Yee de96aa0755 Add task for 22nd of month for notifying expring cc 2013-03-04 11:19:13 -08:00
Raymond Yee 902c3e837a define a celery task for the 1st of each month to update the status of each Account
right now, I recalculate the status of each account -- but it is probably better to look only at the issue of dates -- another revision coming up.
2013-03-01 14:43:43 -08:00
Andromeda Yelton c4f32b38b5 moving ending soon notification to tasks 2012-11-21 11:09:07 -05:00
Raymond Yee b2ca44da31 Now automatically process transactions based on status of campaigns 2012-11-13 10:15:38 -08:00
Raymond Yee f4c8c67850 [#39477485] allow campaigns to succeed if amount sufficient before campaign deadline 2012-11-13 09:01:05 -08:00