1
0
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:
Eugene Fox
2023-02-06 01:37:46 +03:00
parent 2723157d5a
commit 423646eed5
9 changed files with 28 additions and 18 deletions
@@ -92,19 +92,19 @@ namespace GUTSchedule.Droid.Activities
start.Text = startDate.ToShortDateString();
groupTitle.Checked = prefs.GetBoolean("AddGroupToHeader", false);
authorize.Checked = prefs.GetBoolean("Authorize", true);
authorize.Checked = false; // prefs.GetBoolean("Authorize", true);
email.Text = prefs.GetString("email", "");
password.Text = prefs.GetString("password", "");
//email.Text = prefs.GetString("email", "");
//password.Text = prefs.GetString("password", "");
try
/*try
{
AvailableOccupations = await Parser.CheckAvailableOccupations(email.Text, password.Text);
}
catch
{
AvailableOccupations = new List<(string, string)>();
}
}*/
}
private void Export_Click(object sender, EventArgs e)
@@ -18,7 +18,7 @@
<AndroidResgenClass>Resource</AndroidResgenClass>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<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
{
@@ -32,6 +32,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:visibility="gone"
android:text="@string/authorizeCheckbox"/>
<LinearLayout
@@ -39,7 +40,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
android:visibility="visible">
<TextView
android:layout_width="match_parent"
@@ -76,7 +77,8 @@
android:id="@+id/professorParams"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:orientation="vertical"
android:visibility="gone">
<TextView
android:layout_width="match_parent"
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using GUTSchedule.Models;
using NUnit.Framework;
@@ -68,8 +69,8 @@ namespace GUTSchedule.Test
var list = await Parser.GetSchedule(new DefaultExportParameters
{
Course = "0",
FacultyId = faculty.id,
GroupId = group.id,
FacultyId = "50005",
GroupId = "54222",
EndDate = DateTime.Today.AddDays(7),
StartDate = DateTime.Today
});
@@ -78,7 +79,7 @@ namespace GUTSchedule.Test
Assert.IsTrue(list.Count > 0);
Console.WriteLine("Events list:");
foreach (var i in list)
foreach (var i in list.OrderBy(i => i.StartTime))
{
Console.WriteLine("--------------------------------------------------");
Console.WriteLine($"[{i.Group}] {i.Order}. {i.Name} ({i.Type})");
+1 -1
View File
@@ -70,7 +70,7 @@ namespace GUTSchedule
}
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);
if(rawSchedule[0] != null)
schedule.AddRange(ParseRegularSchedule(startDate, rawSchedule[0]));