diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-09 22:38:11 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-09 22:38:11 +0300 |
commit | 69f6e0cc7af448e095805b418d72567e0b78416e (patch) | |
tree | 22d2b746ff826cdc043561c10083f54ff13a8baa | |
parent | 6955838388cce026e5b0262e97741e73099b7a29 (diff) | |
download | obnam-69f6e0cc7af448e095805b418d72567e0b78416e.tar.gz |
Bugfix: generation numbers must be strings
-rw-r--r-- | obnamlib/fmt_ga/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py index 9ee7ff3f..62d96368 100644 --- a/obnamlib/fmt_ga/client.py +++ b/obnamlib/fmt_ga/client.py @@ -166,9 +166,9 @@ class GAClient(object): def _new_generation_number(self): if self._generations: ids = [gen.get_number() for gen in self._generations] - return ids[-1] + 1 + return str(int(ids[-1]) + 1) else: - return 1 + return str(1) def remove_generation(self, gen_number): self._load_data() |