Project

General

Profile

Revision 539f69fc

ID539f69fc6afc834fec500e42c52304d9699785cd
Parent 54644278
Child bcf87133

Added by Francois POIROTTE over 14 years ago

Suite des modifications pour les historiques dans VigiBoard.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@2151 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/controllers/vigiboardrequest.py
341 341
        de l'affichage pour un historique donné.
342 342
        """
343 343

  
344
        ids = [data[0].idcause for data in self.events]
344
        ids = [data[0].idevent for data in self.events]
345 345
        history = DBSession.query(
346 346
                    EventHistory,
347 347
                ).filter(EventHistory.idevent.in_(ids)
348 348
                ).order_by(desc(EventHistory.timestamp)
349 349
                ).order_by(desc(EventHistory.idhistory))
350

  
351
        hists = {}
352
        for idevent in ids:
353
            hists[idevent] = []
354

  
355
        for entry in history:
356
            hists[entry.idevent].append(entry)
357

  
358
        return hists
350
        return history
359 351

  
360 352
    def generate_tmpl_context(self):
361 353
        """

Also available in: Unified diff