HOUR_MESSAGE = create_input_message(HOUR_FIELD_NAME, 'HH:MM', _('now'))
VALUE_MESSAGE = create_input_message(VALUE_FIELD_NAME, '#####.##', '')
DESCRIPTION_MESSAGE = create_input_message(DESCRIPTION_FIELD_NAME, '', '')
+FILTER_MESSAGE = create_input_message(_('regex filter'), '', '')
def write_movement_to_file(path, m):
fileStream.write('\n')
return
+def read_filter():
+ filtro = input(FILTER_MESSAGE)
+ return filtro
def read_type():
t = 'n'
ordered_movements = sort_movements(movements)
filtered_movements = mov_filter(ordered_movements, filter)
for movement in filtered_movements:
- formatted_movement = format_movement(ordered_movements[i])
+ formatted_movement = format_movement(movement)
print(formatted_movement)
def filter_movements():
#
msgid ""
msgstr ""
-"Project-Id-Version: money 2.0.0\n"
-"Report-Msgid-Bugs-To: scompo@gmail.com\n"
-"POT-Creation-Date: 2018-07-18 22:00+0200\n"
+"Project-Id-Version: money 2.0.2\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-09-16 23:15+0200\n"
"PO-Revision-Date: 2018-07-10 23:17+0200\n"
"Last-Translator: <scompo@gmail.com>\n"
"Language-Team: Italian\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-#: money/money.py:20
+#: money/money.py:21
msgid "type"
msgstr "tipo"
-#: money/money.py:21
+#: money/money.py:22
msgid "value"
msgstr "valore"
-#: money/money.py:22
+#: money/money.py:23
msgid "date"
msgstr "data"
-#: money/money.py:23
+#: money/money.py:24
msgid "hour"
msgstr "ora"
-#: money/money.py:24
+#: money/money.py:25
msgid "description"
msgstr "descrizione"
-#: money/money.py:50
+#: money/money.py:51
msgid "today"
msgstr "oggi"
-#: money/money.py:51
+#: money/money.py:52
msgid "now"
msgstr "adesso"
-#: money/money.py:139
+#: money/money.py:55
+#, fuzzy
+msgid "regex filter"
+msgstr "filtro regex"
+
+#: money/money.py:144
msgid "data file:"
msgstr "file dati:"
-#: money/money.py:331
+#: money/money.py:365
msgid "latest {} movements:"
msgstr "ultimi {} movimenti:"
-#: money/money.py:382
+#: money/money.py:416
msgid "actual value: {}"
msgstr "valore attuale: {}"
-#: money/money.py:383
+#: money/money.py:417
msgid "total incomes: {}"
msgstr "incassi totali: {}"
-#: money/money.py:384
+#: money/money.py:418
msgid "total expenses: {}"
msgstr "spese totali: {}"
-# Translations for money template file.
-# Copyright (C) 2018 Mauro Scomparin
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
-# Mauro Scomparin <scompo@gmail.com>, 2018.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: money 2.0.0\n"
-"Report-Msgid-Bugs-To: scompo@gmail.com\n"
-"POT-Creation-Date: 2018-07-18 22:00+0200\n"
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2019-09-16 23:16+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: money/money.py:20
+#: money/money.py:21
msgid "type"
msgstr ""
-#: money/money.py:21
+#: money/money.py:22
msgid "value"
msgstr ""
-#: money/money.py:22
+#: money/money.py:23
msgid "date"
msgstr ""
-#: money/money.py:23
+#: money/money.py:24
msgid "hour"
msgstr ""
-#: money/money.py:24
+#: money/money.py:25
msgid "description"
msgstr ""
-#: money/money.py:50
+#: money/money.py:51
msgid "today"
msgstr ""
-#: money/money.py:51
+#: money/money.py:52
msgid "now"
msgstr ""
-#: money/money.py:139
+#: money/money.py:55
+msgid "regex filter"
+msgstr ""
+
+#: money/money.py:144
msgid "data file:"
msgstr ""
-#: money/money.py:331
+#: money/money.py:365
msgid "latest {} movements:"
msgstr ""
-#: money/money.py:382
+#: money/money.py:416
msgid "actual value: {}"
msgstr ""
-#: money/money.py:383
+#: money/money.py:417
msgid "total incomes: {}"
msgstr ""
-#: money/money.py:384
+#: money/money.py:418
msgid "total expenses: {}"
msgstr ""
setup(
name='money',
- version='2.0.1',
+ version='2.0.2',
description='Money handling program',
long_description='A python program to handle expenses and incomes',
url='http://code.scompo.it:3000/scompo/money',