Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Hari-egov authored Sep 11, 2024
2 parents 25c91ea + abab04e commit 2a6dae2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions build/build-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ config:
- work-dir: "frontend/micro-ui"
image-name: "mgramseva-web"
dockerfile: "frontend/micro-ui/web/docker/Dockerfile"
- name: "builds/mGramSeva/core-services/boundary-service"
build:
- work-dir: "core-services/boundary-service"
image-name: "boundary-service"
dockerfile: "build/maven/Dockerfile"
- work-dir: "core-services/boundary-service/src/main/resources/db"
image-name: "boundary-service-db"
- name: "builds/mGramSeva/core-services/user-otp"
build:
- work-dir: "core-services/user-otp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public List<MeterReading> createMeterReading(MeterConnectionRequest meterConnect
}
enrichmentService.enrichMeterReadingRequest(meterConnectionRequest);
meterReadingsList.add(meterConnectionRequest.getMeterReading());

if (meterConnectionRequest.getMeterReading().getGenerateDemand()) {
generateDemandForMeterReading(meterReadingsList, meterConnectionRequest.getRequestInfo());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public void generateBulkDemandForTenant(BulkDemand bulkDemand) {
// Check for duplicate calls in the last configurable duration
boolean isDuplicate = demandService.isDuplicateBulkDemandCall(tenantId, billingPeriod, durationAgo);
if (isDuplicate) {
throw new CustomException("DUPLICATE_REQUEST", "A bulk demand generation for this tenant and billing Period was already requested in the last "+ duplicateHours +" hours.");
throw new CustomException("DEMAND_DUPLICATE_REQUEST", "A bulk demand generation for this tenant and billing Period was already requested in the last "+ duplicateHours +" hours.");
}
if(tenantId != null && tenantId.split("\\.").length >1) {
demandService.generateBulkDemandForTenantId(bulkDemand);
Expand Down
3 changes: 1 addition & 2 deletions utilities/rollout-dashboard-cronjob/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,7 @@ def is_saturdaydayOrSunday():
print("DateTime today :",datetime.today().weekday())
return datetime.today().weekday() in [5, 6]
def get_daterange():
if is_saturdaydayOrSunday():
return [
return [
'Last seven days', 'Last 15 days', 'currentMonth-Till date', 'Previous Month',
'Quarter-1', 'Quarter-2', 'Quarter-3', 'Quarter-4',
'Consolidated (As on date)', 'FY to date',
Expand Down

0 comments on commit 2a6dae2

Please sign in to comment.