Пример #1
0
 def archive_tokens(self, tokens):
     for token in tokens:
         active_token_model = ActiveTokenModel.from_token(token)
         active_token_model.delete()
         archived_token_model = ArchivedTokenModel.from_token(token)
         archived_token_model.save()
Пример #2
0
 def archive_tokens(self, tokens):
     for token in tokens:
         active_token_model = ActiveTokenModel.from_token(token)
         active_token_model.delete()
         archived_token_model = ArchivedTokenModel.from_token(token)
         archived_token_model.save()
Пример #3
0
 def delete_archived_tokens(self, deletes):
     for token in deletes:
         token_model = ArchivedTokenModel.from_token(token)
         token_model.delete()
Пример #4
0
 def delete_archived_tokens(self, deletes):
     for token in deletes:
         token_model = ArchivedTokenModel.from_token(token)
         token_model.delete()