Skip to content

Commit 8b4b257

Browse files
committed
Fix readme and improve departments list
1 parent 610860d commit 8b4b257

File tree

2 files changed

+28
-36
lines changed

2 files changed

+28
-36
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ made with use of [python-creditagricole-particuliers](https://github.com/dmachar
1515
- Auto assign budget, category, tags, expense/revenue account on transactions depending on their description*
1616
- And even auto rename them!*
1717

18-
_*These features are already features of FireflyIII thanks to [automated rules](https://docs.firefly-iii.org/firefly-iii/pages-and-features/rules/). I also implemented them to allow you to quickly create rules directly in the config file._
18+
_*These features are already features of FireflyIII thanks to [automated rules](https://docs.firefly-iii.org/how-to/firefly-iii/features/rules/). I also implemented them to allow you to quickly create rules directly in the config file._
1919

2020
## How to install
2121

creditagricole.py

+27-35
Original file line numberDiff line numberDiff line change
@@ -151,55 +151,47 @@ def get_ca_region(department_id: str):
151151
}
152152

153153
DEPARTMENTS_TO_CA_REGIONS = {
154-
('2A', '2B'): ['corse'],
155-
('1',): ['centrest'],
156-
('2',): ['nord-est'],
157-
('3',): ['centrefrance'],
158-
('4', '6'): ['pca'],
159-
('5', '13'): ['alpesprovence'],
160-
('7',): ['sudrhonealpes', 'centrest'],
161-
('8',): ['nord-est'],
162-
('9',): ['sudmed'],
154+
('20', '2A', '2B'): ['corse'],
155+
('1', '71'): ['centrest'],
156+
('2', '8', '51'): ['nord-est'],
157+
('4', '6', '83'): ['pca'],
158+
('5', '13', '84'): ['alpesprovence'],
163159
('10', '21', '52', '89'): ['cb'],
164-
('11', '30', '34'): ['languedoc'],
160+
('11', '30', '34', '48'): ['languedoc'],
165161
('12', '46', '81', '82'): ['nmp'],
166-
('14', '50', '76'): ['normandie'],
167-
('15', '23', '63'): ['centrefrance'],
162+
('14', '50'): ['normandie'],
163+
('53', '61'): ['normandie', 'anjou-maine'],
164+
('15', '23', '63', '03', '19'): ['centrefrance'],
168165
('16', '24'): ['charente-perigord'],
169-
('17',): ['cmds'],
166+
('17', '79'): ['cmds'],
170167
('18', '58'): ['centreloire'],
171-
('19', '61'): ['centrefrance'],
172-
('20',): ['corse'],
168+
('56',): ['morbihan'],
169+
('45',): ['briepicardie', 'centreloire'],
173170
('22',): ['cotesdarmor'],
174-
('25', '39'): ['franchecomte'],
175-
('26', '38', '69'): ['centrest', 'sudrhonealpes'],
176-
('27',): ['normandie-seine'],
177-
('28', '41', '78'): ['valdefrance'],
178-
('29',): ['cotesdarmor', 'finistere'],
171+
('25', '39', '70', '90'): ['franchecomte'],
172+
('26', '38', '69', '7'): ['centrest', 'sudrhonealpes'],
173+
('27', '76'): ['normandie-seine'],
174+
('28', '41'): ['valdefrance'],
175+
('29',): ['finistere'],
179176
('31',): ['toulouse31'],
180177
('32',): ['aquitaine', 'pyrenees-gascogne'],
181178
('33', '40', '47'): ['aquitaine'],
182179
('35',): ['illeetvilaine'],
183180
('36', '87'): ['centreouest'],
184-
('37',): ['tourainepoitou'],
185-
('55', '57', '67', '88'): ['lorraine'],
181+
('37', '86'): ['tourainepoitou'],
182+
('54', '55', '57'): ['lorraine'],
183+
('67', '68', '88'): ['alsace-vosges'],
184+
('42', '43'): ['loirehauteloire'],
186185
('44', '85'): ['atlantique-vendee'],
187-
('45',): ['briepicardie', 'centreloire'],
188-
('48',): ['languedoc'],
189-
('49', '53', '61', '72'): ['anjou-maine'],
186+
('11', '30', '34', '48',): ['languedoc'],
187+
('49', '72'): ['anjou-maine'],
190188
('59', '62'): ['norddefrance'],
191189
('64', '65'): ['pyrenees-gascogne'],
192-
('66',): ['sudmed'],
193-
('68',): ['alsace-vosges'],
194-
('70', '90'): ['franchecomte'],
195-
('71',): ['centrest'],
190+
('66', '9'): ['sudmed'],
196191
('73', '74'): ['des-savoie'],
197-
('75', '91', '92', '93', '94', '95'): ['paris'],
198-
('79',): ['cmds'],
199-
('80',): ['briepicardie'],
200-
('83',): ['pca'],
201-
('84',): ['alpesprovence'],
202-
('86',): ['tourainepoitou'],
192+
('75', '91', '92', '93', '94', '95', '78'): ['paris'],
193+
('60',): ['briepicardie', 'paris'],
194+
('80', '77'): ['briepicardie'],
203195
('971',): ['guadeloupe'],
204196
('972', '973'): ['martinique'],
205197
('974',): ['reunion']

0 commit comments

Comments
 (0)