changeset 162:c3e0ae8ba0a0

text_x_arnica: randint output formatted as hex value
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 12 Jul 2008 16:29:55 +0200
parents 8eee2fa838cf
children 2676d2cbfaea
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sat Jul 12 15:29:58 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Sat Jul 12 16:29:55 2008 +0200
@@ -471,8 +471,7 @@
         if self.sort_by_date:
             for attfile in all_files:
                 infile = os.path.join(path, attfile)
-                # ToDo take hex values
-                ft_file = "%s%s" % (os.path.getmtime(infile), randint(0, 65535))
+                ft_file = "%s%x" % (os.path.getmtime(infile), randint(0, 256))
                 image_dict[ft_file] = attfile
             keys = image_dict.keys()
             keys.sort()