Пример #1
0
 def findshot(self):
     if self.tipo=='data':
         shot_number = ls.read_shot()+1
         try:
             if self.server.shot > shot_number:
                 self.shot = self.server.shot
             else:
                 self.shot = shot_number
         except:     
             self.shot=shot_number
     else:
         self.shot=ls.last_shot(self.tipo)+1
Пример #2
0
def findshot(tipo):
    if tipo=='data':
        shot=ls.read_shot()+1
    else:
        shot=ls.last_shot(tipo)+1
    return shot