Skip to content

Commit

Permalink
fix(resources): fix broken ORCT Resources
Browse files Browse the repository at this point in the history
Changes:
- reset timestamp for END messages
  • Loading branch information
cmltaWt0 committed Oct 17, 2017
1 parent 8af9486 commit 510aba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mysite/fsm/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import re
from functools import partial

from django.utils import timezone

from ct.models import (
Role,
Unit,
Expand Down Expand Up @@ -350,6 +352,8 @@ def get_message(self, chat, current=None, message=None):
input_type='custom',
kind='message',
is_additional=True)[0]
message.timestamp = None
message.save()
if self.node_name_is_one_of('GET_RESOLVE'):
message = Message.objects.create(
contenttype='unitlesson',
Expand Down

0 comments on commit 510aba7

Please sign in to comment.