Commit Graph

17 Commits

Author SHA1 Message Date
a97e2cea5a Since some timestamps are broken we need to reconstruct them by regex match groups
Prevents ValueErrors of datetime.strptime in most cases
2015-09-11 23:47:35 +02:00
deaa1d855b Fix bug which prevents detecting of red_fam sectionheading when there is whitespace after closing heading tags (===) 2015-09-11 22:27:25 +02:00
99f050acd3 Add workaround to detect ending datetime if there is no done notice 2015-09-11 16:22:19 +02:00
8b7dc5dbf2 Improve sectionheading regex to reduce false positives, require at least two links 2015-09-11 16:18:46 +02:00
5e39ea0b06 Correct use of pywikibot page.title() 2015-09-11 14:12:26 +02:00
ebf7a8fe0b Add alternative syntax for done_notice 2015-09-11 13:56:16 +02:00
47238f0f96 On archived red_fams do not delete possibly existing ending 2015-09-11 13:37:58 +02:00
907ccad63a Detect if red_fam is archived but has no detectable ending, set status 2 anyway 2015-09-11 13:12:29 +02:00
4f7cfc65cc Catch ValueErrors caused by missing points after month abreviation in RED_PAGE_PARSER.__timestamp 2015-09-10 23:09:35 +02:00
984c269aa4 Implement classmethods for detecting sectionheading, beginning and ending in class RED_FAM_PARSER 2015-09-10 23:06:54 +02:00
7535172d30 Update mysql db if anything of re_fam changes 2015-09-10 11:57:35 +02:00
9e865e1c2f Some clean ups 2015-09-10 11:57:10 +02:00
30e1672557 Implement methods for parsing red_fams
Add Interfaces for RED_FAM
2015-09-10 11:23:15 +02:00
28d9a26cf1 Always handle beginning and ending definitions via setter functions
Setter functions for beginning and ending decide wether it is a datetime object or a parseable timestamp string
2015-09-06 15:04:49 +02:00
122cc8b309 Set date attributes to none if nothing given, rather than don't set the attributes 2015-09-06 14:37:27 +02:00
72410d17b4 Expand __init__ Method of RED_FAM to catch beginning, end and status
Add a __repr__ Method to RED_FAM
2015-09-05 18:36:30 +02:00
10cfa79ee0 Implement a class/modul RED_FAM for handling redundance families 2015-09-05 18:06:17 +02:00