Commit Graph

75 Commits (9ff530f69b91e841a84097da1d724bc16c3d61e9)

Author SHA1 Message Date
Raymond Yee f7e49edfcb Continuing work on collecting info for OLA pledges 2012-07-18 10:49:25 -07:00
Raymond Yee 5e3cf5d7aa Latest integration of campaign data in our own db plus the spreadsheet you can download from Amazon payments
to produce CVS file
2012-07-03 07:46:42 -07:00
Raymond Yee d3da49cf74 Stepping stone to correlating payments with Amazon data
print 1 email / line
2012-06-26 19:36:14 -07:00
Raymond Yee d37792c813 [#31605173] This plugs .../pledge/work_id where work_id tied to no campaign or a campaign that is not ACTIVE 2012-06-21 10:16:51 -07:00
Raymond Yee 3988335072 Add a command to list queued notices 2012-06-21 05:18:12 -07:00
Raymond Yee ea4fc308a0 Allowing campaign.update_status to go SUCCESSFUL w/o regard to specific deadline.
Set a bookloader test to expected failure while it might be a transient error
2012-06-20 15:48:55 -07:00
Raymond Yee d56b7a6453 First pass at a django admin command to check integrity of payments 2012-05-15 07:23:02 -07:00
Raymond Yee 33642190cb Allows set_key command to set keys that already exists 2012-05-10 08:34:45 -07:00
Raymond Yee 40a660e9b6 Add a set_key django admin command to make it easier to load keys 2012-05-09 17:17:18 -07:00
Raymond Yee b289a8cfd3 Fixing how now() is being called in random_campaigns command 2012-05-02 23:49:55 +00:00
Raymond Yee decdac290c Added transaction commitment to command 2012-03-29 15:05:26 -07:00
Raymond Yee 1b9d54037a changing deprecated celery.decorators.task to celery.task.task
added a bit of documentation to core/management/commands/random_tasks.py
2012-03-29 14:51:35 -07:00
Raymond Yee a252f9d173 [#22561067] Implemented regluit.utils.localdatetime.now is by default datetime.datetime.now() (in Django 1.3) and django.utils.timezone.now() in Django 1.4+
One overrides regluit.utils.localdatetime._now to do "time travel" -- useful for testing scenarios requiring time changes (such as Campaigns)
Get rid of call references to datetime.datetime.now() or utcnow() and datetime.date.today() in favor of regluit.utils.localdatetime.now() and date_today().
2012-03-09 00:45:39 +00:00
Raymond Yee 2cae997629 Add a load_gutenberg command to load Gutenberg editions 2012-02-27 13:47:11 -08:00
Raymond Yee f7220d9812 Programs and data for fighting Frankenworks 2012-02-24 12:06:24 -08:00
eric 471cb62fd2 changed core.tasks to not use models 2012-02-16 13:19:36 -05:00
Raymond Yee 5ff810049d OK...I had to encode work.title, not work 2012-02-13 15:02:14 -08:00
Raymond Yee bf07c4b7ed Encode to ascii in the printout to the recluster_singletons 2012-02-13 15:01:00 -08:00
Raymond Yee 26e8024eb2 Compute the number of works corresponding to new editions 2012-02-06 11:34:11 -08:00
Raymond Yee 3a2cece7dd Adding a bit more info to recluster_singletons but now requires a max parameter
Also adding __unicode__ method to Identifier
2012-02-06 11:26:48 -08:00
eric 4a7f82d513 decided we should recluster by language 2012-02-06 12:42:15 -05:00
eric f0a390d78d new management command: recluster_singletons 2012-02-04 18:36:06 -05:00
eric f9de2d229f add relookup_isbns management command 2012-02-02 09:05:41 -05:00
Raymond Yee 3957c9f96a Print out the number of Editions tied to Works w/o identifiers 2012-01-31 14:19:10 -08:00
Raymond Yee 7f2cc341d5 Trying to nail down what happens to editions tied to orphan that we delete 2012-01-31 14:02:01 -08:00
Raymond Yee a37a401171 Ooop: the last test was tautological...fixed typo 2012-01-30 18:35:52 -08:00
Raymond Yee b187663299 Adding integrity checks for ties between Works, Editions, and Identifiers 2012-01-30 18:32:49 -08:00
Raymond Yee 874964a1d4 Ooops...didn't sort the Works w/o identifiers in reverse chronological order 2012-01-30 13:37:48 -08:00
Raymond Yee f5029004bb Added a display of the last 20 Works w/o identifiers 2012-01-30 13:34:10 -08:00
Raymond Yee 078c853baf Now listing number of editions w/o works and number of identifiers not tied to work 2012-01-30 12:30:18 -08:00
Raymond Yee d285e32b2b First draft of check_works_integrity command to check for data integrity issues with Works, Editions, Identifiers 2012-01-30 12:22:53 -08:00
eric 052e523f22 new management command to check for editions without attached works 2012-01-30 12:52:53 -05:00
eric 8dcca8c1e7 deprecated managemetn command 2012-01-28 22:17:58 -05:00
eric b92ce71ea0 make load_wishlist safer 2012-01-28 22:17:11 -05:00
eric 4259e055d0 management command to remove orphans (works with no ids pointing at them) 2012-01-27 22:09:58 -05:00
eric 45a02cbcaf this sort of dupe now prevented by an integrety constraint 2012-01-17 10:37:15 -05:00
Ed Summers 285be53900 only add to wishlist if an edition was found 2012-01-17 09:46:12 -05:00
Ed Summers 245fefe1f1 a management command to load a user wishlist based on a file of isbns 2012-01-17 09:42:16 -05:00
Raymond Yee 47399ab23a Merge branch 'master' of github.com:Gluejar/regluit into payment 2011-12-20 14:07:43 -05:00
Ed Summers 9231923b88 remove duplicate editions 2011-12-20 12:37:50 -05:00
Ed Summers 19976b2520 added beginning of a management command to remove duplicate editions 2011-12-20 12:19:23 -05:00
Raymond Yee f1875201b3 Merge branch 'master' of github.com:Gluejar/regluit into payment 2011-12-19 13:23:40 -05:00
Ed Summers 2417886169 removing 0014_populate_subjects migration since it is problematic to run with South ORM, instead have people run add_openlibrary management command 2011-12-19 02:20:24 -05:00
Ed Summers 55656e2d3d now getting subjects from openlibrary instead of from googlebooks. You will need to APPLY MIGRATIONS! 2011-12-19 01:33:13 -05:00
Raymond Yee 7cc9a1047a Do ascii encoding of print message so that the print statement doesn't die on non-ascii words. 2011-12-14 18:04:09 +00:00
eric 167dccf574 Wishlists are now filled using the Wishes intermediate table. It's named the same as previous intermediate table, and I've edited the migration so data is not lost.
Also, I've added methods od Wishlists to add and remove Works. There
are "source" and created columns on the Wishes table
2011-12-08 18:22:20 -05:00
Raymond Yee 11027f6bc1 First attempt at placing a Librarything import button 2011-11-16 16:47:29 -08:00
Raymond Yee 27d162c9d7 Now scraping LibraryThing view_style 5 to get at ISBNs of works -- as well as LC classification, subjects. Explicit parsing out of work_id and book_id 2011-11-15 17:14:28 -08:00
Raymond Yee c8c5bd08d8 First pass at parsing LibraryThing collections by scraping HTML -- try it out using the librarything_load_books_2.py command
e.g.,

django-admin.py librarything_load_books_2 rdhyee

The command doesn't load books yet but just displays some info
2011-11-11 18:42:48 -08:00
Raymond Yee 374196d763 Refined model for CeleryTask 2011-11-10 09:33:22 -08:00