From 4c6f74b312cef1337d73dbbb1aeecd2784a74ab0 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 28 Apr 2022 12:48:57 +0300 Subject: [PATCH] Add strip --- nix_channel_server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix_channel_server/app.py b/nix_channel_server/app.py index 3d18f62..9f25c15 100644 --- a/nix_channel_server/app.py +++ b/nix_channel_server/app.py @@ -7,7 +7,7 @@ from flask import Flask, request, jsonify, redirect from flask_restful import Api, Resource, reqparse # Read the current nixos channel URL from file channel_url.txt -current_channel = open("channel_url.txt", "r").read() +current_channel = open("channel_url.txt", "r").read().strip() class Channel(Resource): def get(self):