Compare commits

..

2 Commits

2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@ depends=(
) )
makedepends=("git") makedepends=("git")
optdepends=("postgresql: database") optdepends=("postgresql: database")
backup=("etc/${pkgname%-git}.env") backup=("etc/${pkgname%-git}/config.toml")
source=( source=(
"${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi" "${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi"
"${pkgname%-git}.service" "${pkgname%-git}.service"

View File

@ -146,7 +146,9 @@ class Snapshot(AccountModel):
) )
def __str__(self): def __str__(self):
return _("%(date)s statement") % {"date": self.date} return "{} {}".format(
_("%(date)s statement") % {"date": self.date}, self.account
)
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
if Snapshot.objects.filter(id=self.id).exists(): if Snapshot.objects.filter(id=self.id).exists():