Commit Graph

110 Commits

Author SHA1 Message Date
f04bbba367 Add taskipy and coverage tools 2020-07-18 23:43:23 -04:00
2855e773cd DoorController: Check for HTTP error before trying to parse XML 2020-07-18 23:43:23 -04:00
ab6d0bdbc4 Add typing annotation for DoorController 2020-07-18 23:43:23 -04:00
53b457b0a9 Add more misc stuff to gitignore 2020-07-18 23:43:23 -04:00
79fb5f1b27 Add tests and typing annotation for Credential 2020-07-18 23:43:23 -04:00
0528686903 Actually validate door controller SSL certificates 2020-07-18 23:43:23 -04:00
4d38ac5840 Move various functionality from doorUpdater to DoorController 2020-07-18 23:43:23 -04:00
5401e8b185 WIP: Add some unit tests 2020-07-18 23:43:23 -04:00
c3fb82e971 Add pytest dependency 2020-07-18 23:43:23 -04:00
fffe27d877 Remove bin/ scripts, replace with poetry scripts section 2020-07-18 23:40:25 -04:00
e16370f371 ucsAccounts: Rewrite using udm_rest_client, allowing remote operation
This allows running all of the updater scripts on net-svcs, instead of
running this one on UCS itself
2020-07-18 23:37:57 -04:00
2549bff31f mw_models: Add 'Accepted COVID-19 Policy' field 2020-07-01 12:54:32 -04:00
51dd059892 mw_models: Make boolean fields not nullable 2020-07-01 12:54:32 -04:00
ed1cbdcd2d doorUpdater: Allow staff access to override lack of limited ops access 2020-06-06 16:53:22 -04:00
9970838b5c sqlExport: Fix name of property on member, add essential business self-cert
I used the old name, instead of the new name...
2020-05-19 12:39:01 -04:00
85a2ab977a sqlExport: export all non-folder flags, instead of just labels 2020-05-18 20:25:35 -04:00
7ca2b30d4a sqlExport: Add limited operations fields to Member 2020-05-18 20:24:17 -04:00
2eacb46353 doorUpdater: Add "Staffed Hours Only" limited operations role
Also fix new name for old "access permitted during limited operations"
role, which now allows for access during limited operations using the
member's normal access hours
2020-05-17 21:32:07 -04:00
50952bdb46 sqlExport: Change "For"->"Event/Form Name" header name in transactions
at some point MembershipWorks changed the header in the CSV export
2020-05-07 01:00:21 -04:00
af0584651c sqlExport: Truncate the transactions table every pull to avoid duplication issues 2020-05-07 00:37:21 -04:00
ca9a089108 Update README to reflect restructuring of repository 2020-04-28 14:37:59 -04:00
2c3cf27779 Rewrite common.py into a more generic Config class 2020-04-26 21:11:13 -04:00
e37770dbe2 hidEvents: rename from events to hidEvents 2020-04-26 21:11:13 -04:00
a53ad5edd4 events: Rewrite to output to sql database instead of XML files 2020-04-26 21:11:13 -04:00
afd6ffbdc0 Remove old schedule file 2020-04-26 21:11:13 -04:00
743fe3b9fb Remove membershipViewer 2020-04-26 21:11:13 -04:00
b509495c5f Restructure to a more normal module-like structure 2020-04-26 21:11:10 -04:00
7981a05a46 Setup poetry, apply Black and isort styling 2020-04-26 21:04:31 -04:00
525fd24a22 sqlExport: Add script to export MembershipWorks data to a MariaDB server 2020-04-26 21:04:24 -04:00
cf84086446 doorUpdater: Retrieve former members and remove their schedules 2020-03-29 00:28:58 -04:00
952852badb doorUpdater: Reuse more code/flow between new and existing members 2020-03-29 00:28:58 -04:00
e832851fc4 Add README.md 2020-03-29 00:28:58 -04:00
a201b9f09c lib/MembershipWorks: Allow getting both CSV and json transactions data 2020-03-29 00:28:58 -04:00
06516ad0cd lib/membershipworks: Rework to be more generic, add more methods
parse out folder, label, and attribute information from the json
returned on login, allowing less hardcoded values

Add get_transaction and get_all_members methods
2020-03-29 00:28:37 -04:00
f95493e3a6 doorUpdater: Add temporary check for access during Limited Operations 2020-03-29 00:28:37 -04:00
641b9a2779 lib/hid: Work around HID bug in returned XML records
Includes:
- lib/hid: Don't send recordCount as -1, fixes #4
2020-03-29 00:28:09 -04:00
9d743344ab Move hid/*.py and MembershipWorks.py to lib folder 2020-02-14 18:32:34 -05:00
c52b76534c Refactor MembershipWorks handling into separate class/file 2020-02-06 17:48:47 -05:00
25532bf21b Refactor doorUpdater to add support for door specific schedules 2019-12-20 18:42:57 -05:00
d5be64c37d Switch config file from JSON to YAML 2019-12-20 18:42:06 -05:00
d248e41fdb Allow DoorController to handle paginated records requests 2019-12-20 17:38:10 -05:00
82a54b8f41 Re-arrange import ordering 2019-11-22 16:39:31 -05:00
659459ddd3 Add systemd config for running as a service 2019-11-09 15:09:54 -05:00
2b894d3cc9 Make executable, clean up style, and rename new door updater 2019-11-08 16:08:53 -05:00
21a9aa5b5c Properly add, remove, and reassign credentials for existing members 2019-11-08 16:08:53 -05:00
8367c8bbc1 Properly handle parity bits in codeToHex 2019-11-08 14:54:46 -05:00
667260831c Refactor new XML updater, move methods into correct classes 2019-11-07 15:22:50 -05:00
bb18f34b2e Remove deprecated door update scripts 2019-11-07 13:33:34 -05:00
df92332c69 Revert "Don't use format strings, for compatability with Python 3.5 :("
This reverts commit 96c34c95f3.
2019-11-07 13:33:34 -05:00
d867cacfef Switch to XML messages instead of CSV import for updating controllers 2019-11-07 13:33:22 -05:00