Exemple #1
0
    def load_data(self):
        try:
            self.mongo_boss = MongoUnionBoss.objects.get(id=self.union.union_id)
        except DoesNotExist:
            self.mongo_boss = MongoUnionBoss(id=self.union.union_id)
            self.mongo_boss.save()

        self.union_member = UnionMember(self.char_id)
Exemple #2
0
 def load_data(self):
     try:
         self.mongo_boss = MongoUnionBoss.objects.get(
             id=self.union.union_id)
     except DoesNotExist:
         self.mongo_boss = MongoUnionBoss(id=self.union.union_id)
         self.mongo_boss.opened = {}
         self.mongo_boss.save()