Sfoglia il codice sorgente

Fix synch between thumbs and title

master
tr4ck3ur des JM2L 9 anni fa
parent
commit
0ea3c05f22
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      jm2l/models.py

+ 4
- 4
jm2l/models.py Vedi File

@@ -114,8 +114,8 @@ class JM2L_Year(Base):
@property
def DocLinks(self):
from .upload import MediaPath
return zip( MediaPath().get_list('presse', self.year_uid, 'Other'),
MediaPath().get_thumb('presse', self.year_uid, 'Other')
return zip( sorted(MediaPath().get_list('presse', self.year_uid, 'Other')),
sorted(MediaPath().get_thumb('presse', self.year_uid, 'Other'))
)

class User(Base):
@@ -282,8 +282,8 @@ class Tiers(Base):
@property
def DocLinks(self):
from .upload import MediaPath
return zip( MediaPath().get_list('tiers', self.uid, 'Other'),
MediaPath().get_thumb('tiers', self.uid, 'Other')
return zip( sorted( MediaPath().get_list('tiers', self.uid, 'Other') ),
sorted( MediaPath().get_thumb('tiers', self.uid, 'Other') )
)

@property


Caricamento…
Annulla
Salva