52 Commits
Author SHA1 Message Date
ponas 1b39a98f51 Add debug to /send 2017-08-10 01:30:24 +02:00
ponas 828a02bd16 Return a response on incoming SMS 2017-08-10 01:24:16 +02:00
ponas 35bd57b497 Respond to incoming SMS with link to app. Remove Kassa endpoint. 2017-08-09 19:28:34 +02:00
ponas 5fc7e2a8a0 Add /send endpoint, basic Dusken API. Remove more unneeded stuff. 2017-08-04 23:08:51 +02:00
ponas 4b75b45ce2 Remove code related to Inside 2017-07-29 01:12:33 +02:00
ponas 74a5804a26 Yeah, those look like timestamps 2016-01-14 23:49:42 +01:00
ponas 8479251120 It is usually not a good idea to redefine functions 2016-01-14 23:45:27 +01:00
ponas ac582cc5b1 Add sales time series endpoint 2016-01-14 23:35:01 +01:00
ponas 48b8477b8e Properly check if the activation code is still valid in has_pending_new_membership 2015-08-10 00:10:53 +02:00
ponas e10064c9bc Change text message contents for new members 2015-08-10 00:05:59 +02:00
nikolark 7686b11f12 Adds per day sale stats 2015-08-09 21:59:58 +02:00
nikolark abebcaf688 Rename kassa endpoint and action reflecting use case 2015-08-02 23:51:52 +02:00
nikolark 35c02cd830 Kassa: Notify new card could work 2015-08-01 01:38:20 +02:00
nikolark a1b84fa128 Starts kassa integration WIP 2015-07-31 15:52:23 +02:00
ponas 35be38f6c9 Get rid of the DNSMEDLEM keyword. Resend activation codes that have not been used. 2015-04-29 21:01:41 +02:00
ponas aab98df549 Check status instead of statustext when receiving DLR 2015-02-18 09:46:26 +01:00
ponas 9c7acf9354 Use request.form when receiving POST data 2015-02-18 09:19:36 +01:00
ponas 43893a8cfa Move logging config to a dictionary 2015-02-18 09:04:52 +01:00
ponas 7fc85ffd87 Limit Sendega endpoints to HTTP POST 2015-02-18 07:45:31 +01:00
ponas 4c0e216682 Move some stuff around 2015-02-18 07:08:03 +01:00
ponas 9026386c01 Log billing events before sending SMS. Save X-Real-IP. 2015-02-18 04:43:54 +01:00
ponas 940c1c4943 Use app.config everywhere 2015-02-18 01:32:18 +01:00
ponas 2b3bffdc83 Allow Inside to get purchase date by identified by number and activation_code 2015-02-18 01:31:05 +01:00
ponas 2d3cb6af6a Sloppy conflict resolution 2015-02-17 09:36:32 +01:00
ponas 03ffacf4bd Merge branch 'master' into sendega
Conflicts:
	tekstmelding.py
2015-02-17 09:32:35 +01:00
ponas abc95b06e0 Switch to using the Sendega API. Now with delivery reports! 2015-02-17 09:13:48 +01:00
nikolark 6d47fee748 Activation link: s/http/https 2015-02-14 14:43:56 +01:00
ponas 91bc493153 Remove CustomJSONEncoder 2015-01-14 20:27:21 +01:00
ponas 3cf06df258 PEP8. Long lines are OKAY 2015-01-14 20:10:30 +01:00
ponas d852ebad1a Convert indentation to spaces. 2015-01-14 19:55:25 +01:00
ponas 01a8839fcf StreamHandler does not accept the 'stream' keyword argument even though the docs say so. 2014-08-13 21:03:02 +02:00
ponas 0c6af0271d Ooops, this isn't going well. 2014-08-13 20:49:27 +02:00
ponas af97256b7c Okay, so StreamHandler is not in logging.handlers like the other handlers. 2014-08-13 20:47:08 +02:00
ponas 94984d057c ImportError! Abort, abort! 2014-08-13 20:42:38 +02:00
ponas 80dabbb237 Adds logging to stderr. Finally fixes encoding issues. 2014-08-13 20:31:31 +02:00
ponas 73f00b24a9 Apparently our response body always gets sent as an SMS. Manic fix. 2014-08-11 20:02:00 +02:00
ponas a938b94b91 WSGI expects our app to be in 'application' 2014-08-11 19:45:07 +02:00
ponas e042b1b9e9 More manic unicode fixes. Logs renewals to din_user_update. 2014-08-11 17:32:04 +02:00
ponas ef9acf3321 Moves membership price to config. Properly handles msgid from push2.php. Fixes encoding issues for outgoing SMS. Sest use_dlr to 0 when logging sent SMS. Column response_to in din_sms_sent cannot be NULL. 2014-08-11 16:55:33 +02:00
ponas 01676c6ca9 Notify the user if billing failed. 2014-08-11 05:21:08 +02:00
ponas 6656c0c90d It's nearly complete! No DLR support yet. Needs some QA. 2014-08-11 05:04:02 +02:00
ponas c1a4d51a43 Adds python-requests to requirements. Eurobate HTTP PUSH config options. Non-functioning delivery report endpoint. 2014-08-10 16:12:43 +02:00
ponas c71ec519c3 Updates action column in din_sms_received. Cares about codewords. 2014-08-09 22:13:49 +02:00
ponas 48c8183c64 More logging. It appears debug logging will not show if DEBUG is False. 2014-08-09 05:05:08 +02:00
ponas 1258d8a093 Now with less repetition of column names. 2014-08-09 04:52:05 +02:00
ponas 5beed83851 Adds basic logic for deciding how to act when the user exists. 2014-08-09 04:40:42 +02:00
nikolark f68db21dc3 Generate some activation codes 2014-08-08 17:28:18 +02:00
ponas 0be937c34f Logs incoming messages. 2014-08-08 03:36:44 +02:00
ponas c6fce3a2dc Now has proper database handling. Hooray query_db()! 2014-08-08 02:48:44 +02:00
ponas e74e89d1dd Now uses Flasks configuration handler 2014-08-07 19:15:59 +02:00