Showing 5,781 of 10,536 total issues

Avoid deeply nested control flow statements.
Open

                        for row in rows:
                            current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                     timedelta(minutes=timezone_offset)
                            current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                            point_timestamps.append(current_datetime)
Severity: Major
Found in myems-api/reports/equipmentcarbon.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            for row in rows:
                                current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                         timedelta(minutes=timezone_offset)
                                current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                point_timestamps.append(current_datetime)
    Severity: Major
    Found in myems-api/reports/tenantplan.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              for row in rows:
                                  current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                           timedelta(minutes=timezone_offset)
                                  current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                  point_timestamps.append(current_datetime)
      Severity: Major
      Found in myems-api/reports/meterrealtime.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                for row in rows:
                                    current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                             timedelta(minutes=timezone_offset)
                                    current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                    point_timestamps.append(current_datetime)
        Severity: Major
        Found in myems-api/reports/metercomparison.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  for row in rows:
                                      current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                               timedelta(minutes=timezone_offset)
                                      current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                      point_timestamps.append(current_datetime)
          Severity: Major
          Found in myems-api/reports/equipmentcarbon.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    for row in rows:
                                        current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                 timedelta(minutes=timezone_offset)
                                        current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                        point_timestamps.append(current_datetime)
            Severity: Major
            Found in myems-api/reports/combinedequipmentoutput.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      for row in rows:
                                          current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                   timedelta(minutes=timezone_offset)
                                          current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                          point_timestamps.append(current_datetime)
              Severity: Major
              Found in myems-api/reports/storesaving.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        for row in rows:
                                            current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                     timedelta(minutes=timezone_offset)
                                            current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                            point_timestamps.append(current_datetime)
                Severity: Major
                Found in myems-api/reports/metercomparison.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          for row in rows:
                                              current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                       timedelta(minutes=timezone_offset)
                                              current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                              point_timestamps.append(current_datetime)
                  Severity: Major
                  Found in myems-api/reports/storeload.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            for row in rows:
                                                current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                         timedelta(minutes=timezone_offset)
                                                current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                point_timestamps.append(current_datetime)
                    Severity: Major
                    Found in myems-api/reports/combinedequipmentcost.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              for row in rows:
                                                  current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                           timedelta(minutes=timezone_offset)
                                                  current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                  point_timestamps.append(current_datetime)
                      Severity: Major
                      Found in myems-api/reports/meterrealtime.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                for row in rows:
                                                    current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                             timedelta(minutes=timezone_offset)
                                                    current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                    point_timestamps.append(current_datetime)
                        Severity: Major
                        Found in myems-api/reports/storesaving.py - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  for row in rows:
                                                      current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                               timedelta(minutes=timezone_offset)
                                                      current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                      point_timestamps.append(current_datetime)
                          Severity: Major
                          Found in myems-api/reports/equipmentsaving.py - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    for row in rows:
                                                        current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                 timedelta(minutes=timezone_offset)
                                                        current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                        point_timestamps.append(current_datetime)
                            Severity: Major
                            Found in myems-api/reports/equipmentincome.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      for row in rows:
                                                          current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                   timedelta(minutes=timezone_offset)
                                                          current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                          point_timestamps.append(current_datetime)
                              Severity: Major
                              Found in myems-api/reports/storeload.py - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        for row in rows:
                                                            current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                     timedelta(minutes=timezone_offset)
                                                            current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                            point_timestamps.append(current_datetime)
                                Severity: Major
                                Found in myems-api/reports/metercomparison.py - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          for row in rows:
                                                              current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                       timedelta(minutes=timezone_offset)
                                                              current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                              point_timestamps.append(current_datetime)
                                  Severity: Major
                                  Found in myems-api/reports/shopfloorenergycategory.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                            for row in rows:
                                                                current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                         timedelta(minutes=timezone_offset)
                                                                current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                                point_timestamps.append(current_datetime)
                                    Severity: Major
                                    Found in myems-api/reports/equipmentenergyitem.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              for row in rows:
                                                                  current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                           timedelta(minutes=timezone_offset)
                                                                  current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                                  point_timestamps.append(current_datetime)
                                      Severity: Major
                                      Found in myems-api/reports/equipmentcarbon.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                for row in rows:
                                                                    current_datetime_local = row[0].replace(tzinfo=timezone.utc) + \
                                                                                             timedelta(minutes=timezone_offset)
                                                                    current_datetime = current_datetime_local.strftime('%Y-%m-%dT%H:%M:%S')
                                                                    point_timestamps.append(current_datetime)
                                        Severity: Major
                                        Found in myems-api/reports/equipmentenergyitem.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language