sintonia/airtime_mvc
Lucas Bickel b1f840ee0f Only update timescale pref in db on change
The /Schedule/set-time-scale/format/json was being hit every time a new calendar page was displayed. The isn't good for performance reasons and also makes race conditions like #210 much more likely.

With this change the preference is only updated on the server when the GUI state changes because the user clicked on one of the "Day", "Week", or "Month" buttons.

This does not fix the locking issue completely, but it should help because the cc_prefs time-scale row in the database will get locked much less often. After applying this I wasn't able to reproduce #210 any more on an install with an extensive schedule.
2017-06-03 23:05:18 +02:00
..
application Re-assign files to first non deleted admin user 2017-05-22 00:20:02 +02:00
build Remove legacy upstream name from defaultdata 2017-04-16 00:14:54 +02:00
locale Regenerate strings 2017-03-24 17:28:17 +01:00
public Only update timescale pref in db on change 2017-06-03 23:05:18 +02:00
tests Merge pull request #136 from radiorabe/feature/freeipa-auth 2017-04-03 11:50:23 -04:00