trex-model 1.5.19__tar.gz → 1.5.20__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of trex-model might be problematic. Click here for more details.
- {trex-model-1.5.19 → trex-model-1.5.20}/PKG-INFO +1 -1
- {trex-model-1.5.19 → trex-model-1.5.20}/setup.py +1 -1
- {trex-model-1.5.19 → trex-model-1.5.20}/trex_model.egg-info/PKG-INFO +1 -1
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/rating_models.py +5 -1
- {trex-model-1.5.19 → trex-model-1.5.20}/LICENSE +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/MANIFEST.in +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/README.md +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/setup.cfg +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trex_model.egg-info/SOURCES.txt +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trex_model.egg-info/dependency_links.txt +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trex_model.egg-info/requires.txt +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trex_model.egg-info/top_level.txt +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/conf.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/admin_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/analytic_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/app_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/coporate_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/customer_model_helpers.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/customer_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/fb_subsriber_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/helper/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/helper/reward_model_helpers.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/helper/reward_transaction_helper.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/import_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/inventory_model.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/loyalty_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/lucky_draw_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/marketing_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/membership_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/merchant_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/message_model_helper.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/message_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/model_decorators.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/ndb_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/pos_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/prepaid_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/product_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/program_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/recruit_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/redeem_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/redemption_catalogue_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/referral_program_model.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/reward_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/spending_base_program_model.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/system_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/task_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/test_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/transaction_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/user_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/voucher_models.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/merchant_helpers.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/model_decorator.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/prepaid_helpers.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/pos_conf.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/program_conf.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/utils/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/utils/gcloud/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/utils/gcloud/datastore_util.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/utils/model/__init__.py +0 -0
- {trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/utils/model/model_util.py +0 -0
|
@@ -143,13 +143,15 @@ class TransactionRating(RatingBase):
|
|
|
143
143
|
ambience_rating = ndb.FloatProperty(required=True, default=.0)
|
|
144
144
|
food_rating = ndb.FloatProperty(required=True, default=.0)
|
|
145
145
|
value_rating = ndb.FloatProperty(required=True, default=.0)
|
|
146
|
+
remarks = ndb.StringProperty(required=False)
|
|
146
147
|
created_datetime = ndb.DateTimeProperty(required=True, auto_now_add=True)
|
|
147
148
|
|
|
148
149
|
dict_properties = ['transaction_id','service_rating', 'ambience_rating', 'food_rating','value_rating',
|
|
149
150
|
]
|
|
150
151
|
|
|
151
152
|
@staticmethod
|
|
152
|
-
def create(user_acct, transaction_id, service_rating=.5, ambience_rating=.5, food_rating=.5, value_rating=.5,
|
|
153
|
+
def create(user_acct, transaction_id, service_rating=.5, ambience_rating=.5, food_rating=.5, value_rating=.5,
|
|
154
|
+
remarks=None, for_testing=False):
|
|
153
155
|
sales_transaction = SalesTransaction.get_by_transaction_id(transaction_id)
|
|
154
156
|
if sales_transaction is not None:
|
|
155
157
|
outlet = sales_transaction.transact_outlet_entity
|
|
@@ -167,6 +169,7 @@ class TransactionRating(RatingBase):
|
|
|
167
169
|
ambience_rating = ambience_rating,
|
|
168
170
|
food_rating = food_rating,
|
|
169
171
|
value_rating = value_rating,
|
|
172
|
+
remarks = remarks,
|
|
170
173
|
|
|
171
174
|
)
|
|
172
175
|
|
|
@@ -175,6 +178,7 @@ class TransactionRating(RatingBase):
|
|
|
175
178
|
transaction_rating.ambience_rating = ambience_rating
|
|
176
179
|
transaction_rating.food_rating = food_rating
|
|
177
180
|
transaction_rating.value_rating = value_rating
|
|
181
|
+
transaction_rating.remarks = remarks
|
|
178
182
|
|
|
179
183
|
if for_testing==False:
|
|
180
184
|
transaction_rating.put()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/customer_model_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/helper/reward_model_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/redemption_catalogue_models.py
RENAMED
|
File without changes
|
{trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/referral_program_model.py
RENAMED
|
File without changes
|
|
File without changes
|
{trex-model-1.5.19 → trex-model-1.5.20}/trexmodel/models/datastore/spending_base_program_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|