Commit dfbe47708879a992bc89f704636c55f521730b11

Authored by pyros_astroguita
1 parent 038f236d
Exists in dev

debug A_SCP_Manager fn

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
src/core/pyros_django/scp_mgmt/A_SCP_Manager.py
@@ -58,9 +58,8 @@ class A_SCP_Manager(Agent): @@ -58,9 +58,8 @@ class A_SCP_Manager(Agent):
58 super().__init__() 58 super().__init__()
59 next_period = Period.objects.next_period() 59 next_period = Period.objects.next_period()
60 period = next_period 60 period = next_period
61 - self.pconfig = self._oc['pyros_config']  
62 - self._fn = self.config.fn  
63 self.config = self._oc['config'] 61 self.config = self._oc['config']
  62 + self._fn = self.config.fn
64 self._fn.pathnaming("PyROS.seq.1") 63 self._fn.pathnaming("PyROS.seq.1")
65 64
66 # @override 65 # @override
@@ -259,7 +258,7 @@ class A_SCP_Manager(Agent): @@ -259,7 +258,7 @@ class A_SCP_Manager(Agent):
259 258
260 def set_quota_for_SP(self, id_period): 259 def set_quota_for_SP(self, id_period):
261 period = Period.objects.get(id=id_period) 260 period = Period.objects.get(id=id_period)
262 - for sp_period in SP_Period.objects.filter(period=period) 261 + for sp_period in SP_Period.objects.filter(period=period):
263 sp = sp_period.scientific_program 262 sp = sp_period.scientific_program
264 institute = sp.institute 263 institute = sp.institute
265 institute_quota = institute.quota 264 institute_quota = institute.quota