You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
juggling of profiles fix numerical order put in kilncontroller..py :)
label like this 1186 C5 Bisc Std.json
@app.get('/api/profiles')
def get_profiles():
def extract_number(filename):
import re
match = re.search(r'\d+', filename)
return int(match.group()) if match else float('inf')
profile_files = sorted(
[f for f in os.listdir(profile_path) if os.path.isfile(os.path.join(profile_path, f))],
key=extract_number
)
profiles = []
for filename in profile_files:
with open(os.path.join(profile_path, filename), 'r') as f:
profiles.append(json.load(f))
return json.dumps(profiles)
The text was updated successfully, but these errors were encountered:
Hi Jason and co, thank you for this excellent project, it truly is amazing. I have just installed and am testing your kiln controller so it is up to date, but my firing profiles are in no particular order in the dropdown list. I've labelled them according to MeltTechAu's comment above but I'm not sure if this adjustment has been implented. Do you have any suggestions?
juggling of profiles fix numerical order put in kilncontroller..py :)
label like this 1186 C5 Bisc Std.json
@app.get('/api/profiles')
def get_profiles():
def extract_number(filename):
import re
match = re.search(r'\d+', filename)
return int(match.group()) if match else float('inf')
The text was updated successfully, but these errors were encountered: