Changeset 870fac5 in rattail


Ignore:
Timestamp:
06/13/18 20:30:14 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
790c411
Parents:
2bf8872
Message:

Cache categories by code instead of number

only one place which i know is affected... most code should just cache their
own data instead of using these classes anyway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/db/cache.py

    r2bf8872 r870fac5  
    211211
    212212    def cache_instance(self, category):
    213         self.instances[category.number] = category
     213        self.instances[category.code] = category
    214214
    215215
Note: See TracChangeset for help on using the changeset viewer.