--> -->
 
 
UnboundLocalError
Python 3.7.4: /usr/local/bin/python3
Fri Apr 25 02:26:56 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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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': [['5883644000', '5638287000', '0.9858050890641151', '2', '-', '-'], ['5883644000', '5197271000', '0.8743583841064821', '4', '-', '-'], ['5883644000', '5321387000', '0.3258054138164714', '8', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1813161000', '0.2567994654316916', '3', '-', '-'], ['5883644000', '1586998000', '0.08486735282894592', '13', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-']]}, 'dependency-buyer2bidder': {'buyers': [['5883644000', '5197271000', '0.2559620282728112', '14', '-', '-'], ['5883644000', '5638287000', '0.24793308463246885', '14', '-', '-'], ['5883644000', '5321387000', '0.13854738095551664', '14', 'KOMUNALNO PODJETJE PTUJ D.D.', '-'], ['5883644000', '1586998000', '0.0961401274521479', '14', 'GP PROJECT ING podjetje za gradbeništvo in inženiring d.o.o.', '-'], ['5883644000', '5150515000', '0.08814253507107228', '14', 'DRAVA vodnogospodarsko podjetje Ptuj d.o.o.', '-']]}, 'dependency-mutual': {'buyers': [['5883644000', '5638287000', '0.24441369657805176', '7', '-', '-'], ['5883644000', '5197271000', '0.22380254543323294', '8', '-', '-']]}, 'ratio-assessed-final-bdg-neg': {'buyers': {'409851': ['34', '-0.1650280154237434', '5883644000', '5197271000', '146324.9', '172783.2', '45000000', '409851', '-', '-'], '454899': ['5668', '-0.8775206487627827', '5883644000', '5638287000', '125400.0', '302305.2', '60130000', '454899', '-', '-']}}, 'ratio-assessed-final-bdg-pos': {'buyers': {'216002': ['3039', '0.8344522446177198', '5883644000', '5662257000', '30046.0', '13049.0', '39000000', '216002', '-', 'LESNINA MG OPREMA podjetje za inženiring, d.d., Ljubljana']}}, 'ratio-rev-per-employee-pos': {'buyers': {'279371': ['2814', '11.928982321941417', '5883644000', '5638287000', '303194.41', '2', '60130000', '279371', '-', '-'], '302923': ['8770', '10.6360211159045', '5883644000', '5197271000', '291248.24', '7', '45230000', '302923', '-', '-'], '439122': ['3955', '11.579742647361208', '5883644000', '5388975000', '106910.0', '1.0', '45233000', '439122', '-', '-'], '454899': ['1775', '12.367455514205156', '5883644000', '5638287000', '470053.92', '2', '60130000', '454899', '-', '-']}}}, '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>