Skip to content

Commit 6a06a49

Browse files
Merge pull request #2932 from fedspendingtransparency/master
Master -> QAT
2 parents a20ae8c + 2206f31 commit 6a06a49

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Django 2.2.17 on 2021-01-28 22:34
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('awards', '0078_auto_20210126_1817'),
10+
]
11+
12+
operations = [
13+
migrations.RemoveIndex(
14+
model_name='financialaccountsbyawards',
15+
name='faba_subid_awardkey_sums_idx',
16+
),
17+
migrations.AddIndex(
18+
model_name='financialaccountsbyawards',
19+
index=models.Index(condition=models.Q(disaster_emergency_fund__in=['L', 'M', 'N', 'O', 'P']), fields=['submission', 'distinct_award_key', 'piid', 'transaction_obligated_amount', 'gross_outlay_amount_by_award_cpe'], name='faba_subid_awardkey_sums_idx'),
20+
),
21+
]

usaspending_api/awards/models/financial_accounts_by_awards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ class Meta:
159159
"gross_outlay_amount_by_award_cpe",
160160
],
161161
name="faba_subid_awardkey_sums_idx",
162-
condition=Q(disaster_emergency_fund__in=["L", "M", "N", "O", "P", "R"]),
162+
condition=Q(disaster_emergency_fund__in=["L", "M", "N", "O", "P"]),
163163
)
164164
]

usaspending_api/etl/elasticsearch_loader_helpers/delete_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _lookup_deleted_award_ids(client: Elasticsearch, id_list: list, config: dict
177177
body = filter_query(column, v)
178178
response = client.search(index=index, body=json.dumps(body), size=config["max_query_size"])
179179
if response["hits"]["total"]["value"] != 0:
180-
awards = [x["_source"][ES_AWARDS_UNIQUE_KEY_FIELD] for x in response["hits"]["hits"]]
180+
awards += [x["_source"][ES_AWARDS_UNIQUE_KEY_FIELD] for x in response["hits"]["hits"]]
181181
return awards
182182

183183

0 commit comments

Comments
 (0)