mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
- Updated first week of the first semester start date
- Disabled the ability to sign in with an account
This commit is contained in:
@@ -92,19 +92,19 @@ namespace GUTSchedule.Droid.Activities
|
|||||||
start.Text = startDate.ToShortDateString();
|
start.Text = startDate.ToShortDateString();
|
||||||
|
|
||||||
groupTitle.Checked = prefs.GetBoolean("AddGroupToHeader", false);
|
groupTitle.Checked = prefs.GetBoolean("AddGroupToHeader", false);
|
||||||
authorize.Checked = prefs.GetBoolean("Authorize", true);
|
authorize.Checked = false; // prefs.GetBoolean("Authorize", true);
|
||||||
|
|
||||||
email.Text = prefs.GetString("email", "");
|
//email.Text = prefs.GetString("email", "");
|
||||||
password.Text = prefs.GetString("password", "");
|
//password.Text = prefs.GetString("password", "");
|
||||||
|
|
||||||
try
|
/*try
|
||||||
{
|
{
|
||||||
AvailableOccupations = await Parser.CheckAvailableOccupations(email.Text, password.Text);
|
AvailableOccupations = await Parser.CheckAvailableOccupations(email.Text, password.Text);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
AvailableOccupations = new List<(string, string)>();
|
AvailableOccupations = new List<(string, string)>();
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Export_Click(object sender, EventArgs e)
|
private void Export_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<AndroidResgenClass>Resource</AndroidResgenClass>
|
<AndroidResgenClass>Resource</AndroidResgenClass>
|
||||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
|
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
|
||||||
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
|
||||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace GUTSchedule.Droid
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.0.99.19")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.1.0.5")]
|
||||||
public partial class Resource
|
public partial class Resource
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:checked="true"
|
android:checked="true"
|
||||||
|
android:visibility="gone"
|
||||||
android:text="@string/authorizeCheckbox"/>
|
android:text="@string/authorizeCheckbox"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@@ -39,7 +40,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:visibility="gone">
|
android:visibility="visible">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -76,7 +77,8 @@
|
|||||||
android:id="@+id/professorParams"
|
android:id="@+id/professorParams"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using GUTSchedule.Models;
|
using GUTSchedule.Models;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
@@ -68,8 +69,8 @@ namespace GUTSchedule.Test
|
|||||||
var list = await Parser.GetSchedule(new DefaultExportParameters
|
var list = await Parser.GetSchedule(new DefaultExportParameters
|
||||||
{
|
{
|
||||||
Course = "0",
|
Course = "0",
|
||||||
FacultyId = faculty.id,
|
FacultyId = "50005",
|
||||||
GroupId = group.id,
|
GroupId = "54222",
|
||||||
EndDate = DateTime.Today.AddDays(7),
|
EndDate = DateTime.Today.AddDays(7),
|
||||||
StartDate = DateTime.Today
|
StartDate = DateTime.Today
|
||||||
});
|
});
|
||||||
@@ -78,7 +79,7 @@ namespace GUTSchedule.Test
|
|||||||
Assert.IsTrue(list.Count > 0);
|
Assert.IsTrue(list.Count > 0);
|
||||||
|
|
||||||
Console.WriteLine("Events list:");
|
Console.WriteLine("Events list:");
|
||||||
foreach (var i in list)
|
foreach (var i in list.OrderBy(i => i.StartTime))
|
||||||
{
|
{
|
||||||
Console.WriteLine("--------------------------------------------------");
|
Console.WriteLine("--------------------------------------------------");
|
||||||
Console.WriteLine($"[{i.Group}] {i.Order}. {i.Name} ({i.Type})");
|
Console.WriteLine($"[{i.Group}] {i.Order}. {i.Name} ({i.Type})");
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ namespace GUTSchedule
|
|||||||
}
|
}
|
||||||
else if (exportParameters is DefaultExportParameters args)
|
else if (exportParameters is DefaultExportParameters args)
|
||||||
{
|
{
|
||||||
DateTime startDate = new DateTime(2022, 8, 29);
|
DateTime startDate = new DateTime(2023, 2, 6);
|
||||||
IHtmlDocument[] rawSchedule = await GetRawSchedule(args.FacultyId, args.Course, args.GroupId);
|
IHtmlDocument[] rawSchedule = await GetRawSchedule(args.FacultyId, args.Course, args.GroupId);
|
||||||
if(rawSchedule[0] != null)
|
if(rawSchedule[0] != null)
|
||||||
schedule.AddRange(ParseRegularSchedule(startDate, rawSchedule[0]));
|
schedule.AddRange(ParseRegularSchedule(startDate, rawSchedule[0]));
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
- Updated first week of the first semester start date for anonymous timetable export
|
- Updated first week of the first semester start date for anonymous timetable export
|
||||||
|
|
||||||
Since anonymous schedule on SPbSUT website is based on week numbers, it is crucial to manually set the date of first week's monday to get correct dates for the timetable
|
Since anonymous schedule on SPbSUT website is based on week numbers, it is crucial to manually set the date of first week's monday to get correct dates for the timetable
|
||||||
|
|
||||||
You can sign in with your SPbSUT profile to have access to correct timetable anytime
|
- Disabled the ability to sign in with an account
|
||||||
|
This is a temporary measure as at the time this feature is blocked by DDoS protection software that was recently installed on the SPbSUT website. We are working on a solution to this problem
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
- Обновлена дата начала первой недели семестра для анонимного экспорта расписания
|
- Обновлена дата начала первой недели семестра для анонимного экспорта расписания
|
||||||
|
|
||||||
Так как анонимное расписание на сайте СПбГУТ представлено по номерам недели, перед началом каждого семестра необходимо вручную обновлять дату понедельника первой недели для корректного указания даты в расписании
|
Так как анонимное расписание на сайте СПбГУТ представлено по номерам недели, перед началом каждого семестра необходимо вручную обновлять дату понедельника первой недели для корректного указания даты в расписании
|
||||||
|
|
||||||
Чтобы всегда иметь возможность узнать правильное расписание, пользуйтесь авторизацией через Личный кабинет
|
- Отключена возможность входа с помощью аккаунта
|
||||||
|
Это временное решение, так как на данный момент данная функция заблокирована защитой от DDoS, которая была недавно установлена на сайте СПбГУТ. Мы работаем над решением данной проблемы
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
## Core
|
## Core
|
||||||
- Updated first week of the first semester start date for anonymous timetable export
|
- Updated first week of the first semester start date for anonymous timetable export
|
||||||
|
Since anonymous schedule on SPbSUT website is based on week numbers, it is crucial to manually set the date of first week's monday to get correct dates for the timetable
|
||||||
|
## Android
|
||||||
|
- Disabled the ability to sign in with an account
|
||||||
|
This is a temporary measure as at the time this feature is blocked by DDoS protection software that was recently installed on the SPbSUT website. We are working on a solution to this problem
|
||||||
|
|
||||||
|
## Windows
|
||||||
|
At this time UWP version of the app is not being supported
|
||||||
|
|||||||
Reference in New Issue
Block a user