I hereby claim:
- I am neoecos on github.
- I am neoecos (https://keybase.io/neoecos) on keybase.
- I have a public key whose fingerprint is D2DB 6008 6233 E827 29DB 349B 1DA7 8D2D D9BA DD59
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
TransMilenio is a Bus Rapid Service wich serves Bogotá City in Colombia, Bogotá metropolitan area has about 9 million population, and have been famous in the country for the horrorific traffic jams. TransMilenio is used to move a massive amount of people every day to get from the suburbs to the centric areas, where people works and does everyday duties as going to bank.
def find_or_create_entity_with_data(*args, **kwargs): | |
cls_entity_data = args[0] if len(args) > 0 else None | |
cls_entity = None | |
if cls_entity_data is not None and issubclass(cls_entity_data, CaliopeEntityData): | |
cls_entity = cls_entity_data.entity_type | |
if cls_entity is not None: | |
code = kwargs['code'] if 'code' in kwargs else None | |
if code is not None: | |
data_entities = cls_entity_data.index.search(code=code) | |
if len(data_entities) == 0: |