This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pep8 $(git status -s | grep '\.py$' | cut -c3-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `psql -l -A -t | grep -v 'postgres' | grep -v 'proxy'| cut -d '|' -f 1 `; do | |
psql -d $i -c "alter table giscedata_liquidacio_fpcc_tarifa DROP CONSTRAINT giscedata_liquidacio_fpcc_tarifa_tarifa_uniq;" ; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -366,6 +366,8 @@ | |
n = doc.createElement("DIPE_FACT_ENERGIA") | |
facturacion.appendChild(n) | |
+ if t.name.codi.startswith('6'): | |
+ t.facturacio_energia = 0.0 | |
txt = doc.createTextNode(str(t.facturacio_energia)) | |
n.appendChild(txt) | |
NewerOlder