Skip to content

Commit

Permalink
bug fixes in app and timeout problems
Browse files Browse the repository at this point in the history
  • Loading branch information
NinaWie committed Nov 17, 2023
1 parent db92e32 commit f37b9e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PennyMe/PinViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class PinViewController: UITableViewController, UIImagePickerControllerDelegate,


func uploadImageWithTimeout(_ image: UIImage) {
let uploadTimeout: TimeInterval = 5
let uploadTimeout: TimeInterval = 10
var task: URLSessionDataTask?

guard let imageData = image.jpegData(compressionQuality: 1.0) else {
Expand Down
2 changes: 1 addition & 1 deletion backend/pennyme/github_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def push_newmachine_to_github(
Returns:
The id of the new machine.
"""
server_locations, latest_commit_sha = load_latest_json(branch_name=branch_name)
server_locations, latest_commit_sha = load_latest_json()

machine_id = get_next_free_machine_id(
"../data/all_locations.json", server_locations["features"]
Expand Down
2 changes: 1 addition & 1 deletion backend/pennyme/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import os
from typing import Dict

from flask import FileStorage
from PIL import Image, ImageOps
from slack import WebClient
from slack.errors import SlackApiError
from werkzeug.datastructures import FileStorage

CLIENT = WebClient(token=os.environ["SLACK_TOKEN"])
IMG_PORT = "http://37.120.179.15:8000/"
Expand Down

0 comments on commit f37b9e6

Please sign in to comment.