Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export plante quand une catégorie est selectionnée #40

Open
grololo06 opened this issue Nov 10, 2021 · 2 comments
Open

Export plante quand une catégorie est selectionnée #40

grololo06 opened this issue Nov 10, 2021 · 2 comments
Labels
bug Something isn't working page-export

Comments

@grololo06
Copy link
Member

Extrait de log:

2021-11-10 06:14:55,221 - root - INFO - Execute SPCommon for Part Export
2021-11-10 06:14:55,236 - root - INFO - Input Param = {'steperrors': [], 'what': 'RED', 'fileformat': 'ODV', 'filtres': {'MapN': '-62.1858', 'MapW': '94.2187', 'MapE': '97.3828', 'MapS': '-63.1144', 'XScale': 'I', 'TimeScale': 'R'}, 'redfiltres': {'taxo': ['25828']}, 'user_name': 'XXXXXXX', 'user_email': '[email protected]', 'samples': [[12900, -62.697, 95.36517, 'YY', 'ctd00', 40, 'uvp5_sn003_2015_kaxis', True]], 'samplesdict': {}, 'excludenotliving': False, 'aggregatefiles': False, 'includenotvalidated': False, 'OutFile': None, 'putfileonftparea': '', 'CustomReturnLabel': 'Back to particle module', 'CustomReturnURL': '/part/?MapN=-62.1858&MapW=94.2187&MapE=97.3828&MapS=-63.1144&filt_fromdate=&filt_todate=&filt_instrum=&filt_proftype=&filt_depthmin=&filt_depthmax=&XScale=I&TimeScale=R&taxolb=25828'}
...
2021-11-10 06:14:55,317 - root - ERROR - Unhandled SubProcess Exception 
Traceback (most recent call last):
  File "/home/ecotaxa/ecotaxa/runtask.py", line 75, in <module>
    fct()
  File "/home/ecotaxa/ecotaxa/appli/tasks/taskpartexport.py", line 888, in SPStep1
    self.CreateRED()
  File "/home/ecotaxa/ecotaxa/appli/tasks/taskpartexport.py", line 290, in CreateRED
    idx=lstcat[h['classif_id']]['idx']
KeyError: 30815
@grololo06 grololo06 added the bug Something isn't working label Nov 10, 2021
@grololo06
Copy link
Member Author

Mais pas quand:
image

@grololo06
Copy link
Member Author

La liste des catégories choisies n'est pas injectée dans le SQL de sélection des part_histocat -> les catégories retournées n'existent pas -> erreur python.
Dans le cas récursif, la liste est injectée (en même temps que les enfants)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working page-export
Projects
None yet
Development

No branches or pull requests

1 participant