--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Thu Apr 24 17:59:36 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/local/apache2/htdocs/tbfy.web/index.py in <module>()
     18 # run script
     19 # run script
     20 
     21 pageObj = conf.Tbfy.TbfyController(conf)
=>   22 print(pageObj.getHTML())
builtin print = <built-in function print>, pageObj = <TbfyController.TbfyController object>, pageObj.getHTML = <bound method TbfyController.getHTML of <TbfyController.TbfyController object>>
 /usr/local/apache2/htdocs/tbfy.web/include/TbfyController.py in getHTML(self=<TbfyController.TbfyController object>)
     40             viewModel = CommonModel.CommonModel(self.confObj, self.getVars)
     41 
=>   42         self.html = self.frameHTML(viewModel.getView())
     43         return self.html
     44 
self = <TbfyController.TbfyController object>, self.html = 'Error: HTML not loaded.', self.frameHTML = <bound method TbfyController.frameHTML of <TbfyController.TbfyController object>>, viewModel = <models.OrganizationsModel.OrganizationsModel object>, viewModel.getView = <bound method OrganizationsModel.getView of <models.OrganizationsModel.OrganizationsModel object>>
 /usr/local/apache2/htdocs/tbfy.web/include/models/OrganizationsModel.py in getView(self=<models.OrganizationsModel.OrganizationsModel object>)
     28             self.contentHtml = self.getSearchOrgView()
     29         elif(query_a == "source_mju"):
=>   30             self.contentHtml = self.getMJUSourceOrgsView()
     31         else:
     32             self.contentHtml = self.conf.sharedMethods.getErrorView(self.conf)
self = <models.OrganizationsModel.OrganizationsModel object>, self.contentHtml = 'Error: SearchModel HTML nof found.', self.getMJUSourceOrgsView = <bound method OrganizationsModel.getMJUSourceOrg...ls.OrganizationsModel.OrganizationsModel object>>
 /usr/local/apache2/htdocs/tbfy.web/include/models/OrganizationsModel.py in getMJUSourceOrgsView(self=<models.OrganizationsModel.OrganizationsModel object>)
    875 
    876         content = self.conf.Template(filename='templates/orgs_overview_mju.tpl')
=>  877         return content.render(data=dict)
    878 
    879     def languageCorrections(self, string2Handle):
content = <mako.template.Template object>, content.render = <bound method Template.render of <mako.template.Template object>>, data undefined, dict = {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}
 /usr/local/lib/python3.7/site-packages/mako/template.py in render(self=<mako.template.Template object>, *args=(), **data={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})
    474 
    475         """
=>  476         return runtime._render(self, self.callable_, args, data)
    477 
    478     def render_unicode(self, *args, **data):
global runtime = <module 'mako.runtime' from '/usr/local/lib/python3.7/site-packages/mako/runtime.py'>, runtime._render = <function _render>, self = <mako.template.Template object>, self.callable_ = <function render_body>, args = (), data = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/lib/python3.7/site-packages/mako/runtime.py in _render(template=<mako.template.Template object>, callable_=<function render_body>, args=(), data={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}, as_unicode=False)
    881         context,
    882         *args,
=>  883         **_kwargs_for_callable(callable_, data)
    884     )
    885     return context._pop_buffer().getvalue()
global _kwargs_for_callable = <function _kwargs_for_callable>, callable_ = <function render_body>, data = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/lib/python3.7/site-packages/mako/runtime.py in _render_context(tmpl=<mako.template.Template object>, callable_=<function render_body>, context=<mako.runtime.Context object>, *args=(), **kwargs={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})
    918         # if main render method, call from the base of the inheritance stack
    919         (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
=>  920         _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
    921     else:
    922         # otherwise, call the actual rendering method specified
global _exec_template = <function _exec_template>, inherit = <function render_body>, lclcontext = <mako.runtime.Context object>, args = (), kwargs = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/lib/python3.7/site-packages/mako/runtime.py in _exec_template(callable_=<function render_body>, context=<mako.runtime.Context object>, args=(), kwargs={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})
    945             _render_error(template, context, e)
    946     else:
=>  947         callable_(context, *args, **kwargs)
    948 
    949 
callable_ = <function render_body>, context = <mako.runtime.Context object>, args = (), kwargs = {'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}}
 /usr/local/apache2/htdocs/tbfy.web/templates_orgs_overview_mju_tpl in render_body(context=<mako.runtime.Context object>, **pageargs={'data': {'anomaliesDict': {'dependency-bidder2buyer': {'buyers': [['5883032000', '5550378000', '0.9866943449129065', '3', '-', '-'], ['5883032000', '6764258000', '0.19827673995896758', '2', '-', '-'], ['5883032000', 't767', '0.16747933008267968', '7', '-', '-'], ['5883032000', '6538991000', '0.1119753164794165', '5', '-', '-'], ['5883032000', '5807867000', '0.10238841228688836', '23', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '2296225000', '0.0972184947287776', '18', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '1189620000', '0.08806472178956068', '3', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883032000', '2296225000', '0.3170210459035054', '12', 'GODINA gradbeništvo in druge storitve d.o.o.', '-'], ['5883032000', '5069041000', '0.2318932927621031', '12', 'CPK, d.d., družba za vzdrževanje cest, gradbeništvo in druge poslovne storitve', '-'], ['5883032000', '5807867000', '0.12951717142692135', '12', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.', '-'], ['5883032000', '5073260000', '0.08828146376278874', '12', 'KOMUNALA SEŽANA d.d.', '-'], ['5883032000', '5550378000', '0.0805816139611646', '12', '-', '-'], ['5883032000', '5143373000', '0.07245874463999076', '12', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883032000', '5550378000', '0.07950942279943603', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'186367': ['4056', '-0.4064117242623073', '5883032000', '5807867000', '80000.0', '120294.26', '45210000', '186367', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.'], '228524': ['271', '-0.17362039046977684', '5883032000', '5730716000', '32790.0', '39053.57', '39000000', '228524', '-', 'ATLAS OPREMA, podjetje za proizvodnjo in trgovino z notranjo opremo, d.o.o.'], '258137': ['3852', '-0.3828195898803902', '5883032000', '5073260000', '215000.0', '315741.9', '45200000', '258137', '-', 'KOMUNALA SEŽANA d.d.'], '272256': ['118', '-0.1679975758349777', '5883032000', '2296225000', '581967.21', '689243.98', '45200000', '272256', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '307845': ['5491', '-0.7662860862887892', '5883032000', '1189620000', '45000.0', '97038.0', '71200000', '307845', '-', 'KO-BIRO podjetje za projektiranje in inženiring d.o.o.'], '341847': ['5528', '-0.7850177140858762', '5883032000', '5143373000', '72200.0', '158642.4', '60130000', '341847', '-', 'NOMAGO, storitve mobilnosti in potovanj, d.o.o.'], '410331': ['2185', '-0.2534507579814869', '5883032000', '2296225000', '112114.93', '144642.41', '45200000', '410331', '-', 'GODINA gradbeništvo in druge storitve d.o.o.'], '433324': ['5258', '-0.6642702877338164', '5883032000', '2348489000', '30000.0', '58405.65', '9300000', '433324', '-', 'HEP Energija, trgovanje in prodaja električne energije, d.o.o.']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'316818': ['3557', '0.7588706032615401', '5883032000', '5807867000', '97100.96', '45483.47', '45200000', '316818', '-', 'GEOIT - Gradbeništvo, projektiranje, inženiring d.o.o.']}}, 'ratio-rev-per-employee-pos': {'buyers': {'284870': ['9093', '10.584055976205669', '5883032000', 't767', '39500.0', '1', '79000000', '284870', '-', '-']}}}, 'companyProfileDict': {}, 'fundsReceived': 0.0, 'issuedFunds': 0.0, 'issuedTenders': {}, 'issuedTendersChartData': {'byTenderNum': {}, 'byValue': {}}, 'numOfAnomalies': 6, 'wonTenders': {}, 'wonTendersChartData': {'byTenderNum': {}, 'byValue': {}}}})

UnboundLocalError: local variable 'companyName' referenced before assignment
      args = ("local variable 'companyName' referenced before assignment",)
      with_traceback = <built-in method with_traceback of UnboundLocalError object>