Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ionnich/save_creatives
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0
Choose a base ref
...
head repository: ionnich/save_creatives
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 3, 2023

  1. fixed fetching first row

    ionnich committed May 3, 2023
    Copy the full SHA
    96e98fc View commit details
Showing with 3 additions and 1 deletion.
  1. +3 −1 save_creatives.py
4 changes: 3 additions & 1 deletion save_creatives.py
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ def verify_input():
if len(sys.argv) < 2:
files = os.listdir()
for file in files:
print(file)
if file.endswith(".xlsx"):
file = file
print(f"using {file}")
@@ -16,6 +17,7 @@ def verify_input():
file = sys.argv[1]
if not file.endswith(".xlsx"):
sys.exit("Input file must be an excel file (.xlsx)")
return file

sys.exit("No excel file")

@@ -47,7 +49,7 @@ def save_creatives(entry):

def main():
file = verify_input()
df = pd.read_excel(file)
df = pd.read_excel(file, header=None)

registry = []
for index, row in df.iterrows():