Subversion Repositories SmartDukaan

Rev

Rev 14882 | Rev 14916 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14882 Rev 14914
Line 1... Line 1...
1
#!/usr/bin/python
1
#!/usr/bin/python
-
 
2
from elixir import *
2
from dtr.storage import DataService 
3
from dtr.storage import DataService 
3
from dtr.storage.DataService import Feedbacks, Users
4
from dtr.storage.DataService import Feedbacks, Users
4
from shop2020.clients.CRMClient import CRMClient
5
from shop2020.clients.CRMClient import CRMClient
5
from shop2020.clients.UserClient import UserClient
6
from shop2020.clients.UserClient import UserClient
6
from shop2020.utils.Utils import to_java_date, to_py_date
7
from shop2020.utils.Utils import to_java_date, to_py_date
Line 91... Line 92...
91
            feedback = Feedbacks.get_by(id = customerFeedBack.id)
92
            feedback = Feedbacks.get_by(id = customerFeedBack.id)
92
            feedback.isTicketCreated = True
93
            feedback.isTicketCreated = True
93
            session.commit()
94
            session.commit()
94
 
95
 
95
def main():
96
def main():
-
 
97
    try:
96
    getAllFeedbacks()
98
        getAllFeedbacks()
97
    createTicketsForCustomerQueries(customerFeedbacks)
99
        createTicketsForCustomerQueries(customerFeedbacks)
-
 
100
    finally:
-
 
101
        session.close()
98
 
102
 
99
if __name__ == '__main__':
103
if __name__ == '__main__':
100
    main()
104
    main()
101
    
105
    
102
106