diff options
author | emkael <emkael@tlen.pl> | 2016-05-10 00:26:03 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-10 00:26:03 +0200 |
commit | 33a9cefdcfbf5177b0a72ef42da4a98fca8761fe (patch) | |
tree | dd4e67b77940549e4de6b26756e60b5e1895b7fd | |
parent | 049abe600fc82728fa0a83ae28aeb7fb04063160 (diff) |
* sort priority for calendar groups
-rw-r--r-- | app/php/model/Category.php | 4 | ||||
-rw-r--r-- | app/python/rcal/model.py | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/php/model/Category.php b/app/php/model/Category.php index 5e71e53..87b97b6 100644 --- a/app/php/model/Category.php +++ b/app/php/model/Category.php @@ -9,10 +9,12 @@ class Category extends ActiveRecord { public $ID; public $Name; + public $Priority; public static $COLUMN_MAPPING = [ 'id' => 'ID', - 'name' => 'Name' + 'name' => 'Name', + 'priority' => 'Priority' ]; public static $RELATIONS = [ diff --git a/app/python/rcal/model.py b/app/python/rcal/model.py index 5b16e8b..512c75e 100644 --- a/app/python/rcal/model.py +++ b/app/python/rcal/model.py @@ -106,6 +106,7 @@ class Category(BASE): id = Column(Integer, primary_key=True) name = Column(String(255), index=True) + priority = Column(Integer, index=True) calendars = relationship( 'Calendar', |